File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed
Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -78,7 +78,8 @@ provision:
7878 sed -e "s/${LIMA_CIDATA_SLIRP_IP_ADDRESS:-192.168.5.15}/127.0.0.1/" -i $KUBECONFIG
7979 mkdir -p ${HOME:-/root}/.kube && cp -f $KUBECONFIG ${HOME:-/root}/.kube/config
8080probes :
81- - script : |
81+ - description : " kubectl to be installed"
82+ script : |
8283 #!/bin/bash
8384 set -eux -o pipefail
8485 if ! timeout 30s bash -c "until command -v kubectl >/dev/null 2>&1; do sleep 3; done"; then
@@ -87,7 +88,8 @@ probes:
8788 fi
8889 hint : |
8990 See "/var/log/cloud-init-output.log". in the guest
90- - script : |
91+ - description : " kubeadm to be completed"
92+ script : |
9193 #!/bin/bash
9294 set -eux -o pipefail
9395 if ! timeout 300s bash -c "until test -f /etc/kubernetes/admin.conf; do sleep 3; done"; then
@@ -96,10 +98,11 @@ probes:
9698 fi
9799 hint : |
98100 The k8s kubeconfig file has not yet been created.
99- - script : |
101+ - description : " kubernetes cluster to be running"
102+ script : |
100103 #!/bin/bash
101104 set -eux -o pipefail
102- if ! timeout 300s bash -c "until kubectl version >/dev/null 2>&1; do sleep 3; done"; then
105+ if ! timeout 300s bash -c "until sudo kubectl version >/dev/null 2>&1; do sleep 3; done"; then
103106 echo >&2 "kubernetes cluster is not up and running yet"
104107 exit 1
105108 fi
You can’t perform that action at this time.
0 commit comments