X-Git-Url: https://gerrit.akraino.org/r/gitweb?a=blobdiff_plain;f=src%2Ffoundation%2Fscripts%2Fk8s_master.sh;fp=src%2Ffoundation%2Fscripts%2Fk8s_master.sh;h=5cce155e76800411c97fbc3d4209d8cf0d0b4aff;hb=3da9015a869d219b522c40738981816f545ae449;hp=67eecf596e0743f0b4545f026c17670107945eb7;hpb=6b15225d910d7a4e5fb806d47e93fc358ae099b7;p=iec.git diff --git a/src/foundation/scripts/k8s_master.sh b/src/foundation/scripts/k8s_master.sh index 67eecf5..5cce155 100755 --- a/src/foundation/scripts/k8s_master.sh +++ b/src/foundation/scripts/k8s_master.sh @@ -13,7 +13,7 @@ if [ -z "${MGMT_IP}" ]; then exit 1 fi -if ! kubectl get nodes; then +if ! kubectl get nodes --request-timeout=3s; then sudo kubeadm config images pull sudo kubeadm init \ --pod-network-cidr="${POD_NETWORK_CIDR}" \