diff --git a/cluster/get-kube-local.sh b/cluster/get-kube-local.sh index 78a410dfb53..b9f2e568e7a 100755 --- a/cluster/get-kube-local.sh +++ b/cluster/get-kube-local.sh @@ -80,7 +80,7 @@ function create_cluster { echo -e -n "\tWaiting for master components to start..." while true; do - local running_count=$(kubectl -s=http://${KUBE_HOST}:8080 get pods --no-headers 2>/dev/null | grep "Running" | wc -l) + local running_count=$(kubectl -s=http://${KUBE_HOST}:8080 get pods --no-headers --namespace=kube-system 2>/dev/null | grep "Running" | wc -l) # We expect to have 3 running pods - etcd, master and kube-proxy. if [ "$running_count" -ge 3 ]; then break