diff --git a/bin/init-cluster b/bin/init-cluster index 323f423d..16749d33 100755 --- a/bin/init-cluster +++ b/bin/init-cluster @@ -143,7 +143,9 @@ if ! kubectl --kubeconfig="${KUBECONFIG}" get ns ingress-nginx &> /dev/null ; th kubectl --kubeconfig="${KUBECONFIG}" apply -f "${nginx_controller}" echo "Waiting for nginx-controller to be up and running... " kubectl --kubeconfig="${KUBECONFIG}" --namespace ingress-nginx wait \ - --for=condition=available deploy/ingress-nginx-controller --timeout=90s \ + --for=condition=ready pod \ + --selector=app.kubernetes.io/component=controller \ + --timeout=120s \ && echo "nginx-controller is ready" \ || echo "timeout! Please wait a little before deploying an app with arnold." else