diff --git a/examples/k8s.yaml b/examples/k8s.yaml index 5b4ffb5ebba..9946cec98b8 100644 --- a/examples/k8s.yaml +++ b/examples/k8s.yaml @@ -40,7 +40,7 @@ provision: script: | #!/bin/bash set -eux -o pipefail - command -v kubectl >/dev/null 2>&1 && exit 0 + command -v kubeadm >/dev/null 2>&1 && exit 0 # Installing kubeadm on your hosts cat </dev/null 2>&1; do sleep 3; done"; then - echo >&2 "kubectl is not installed yet" + if ! timeout 30s bash -c "until command -v kubeadm >/dev/null 2>&1; do sleep 3; done"; then + echo >&2 "kubeadm is not installed yet" exit 1 fi hint: |