case $arg in
"--external" )
- service_host=$(kubectl cluster-info | grep "Kubernetes master" | \
- awk -F ":" '{print $2}' | awk -F "//" '{print $2}')
+ service_host=$(control_plane_ip)
shift
;;
* )
KUBECONFIG=$file kubectl get providernetwork emco-private-net -o name
KUBECONFIG=$file kubectl get providernetwork unprotected-private-net -o name
done
+ # Give some time for the Pods to show up on the clusters. kubectl
+ # wait may return with "error: no matching resources found" if the
+ # Pods have not started yet.
+ sleep 30s
for name in $(cluster_names); do
print_msg "Wait for all pods to start on cluster $name"
file=$(cluster_file "$name")