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:
78
78
sed -e "s/${LIMA_CIDATA_SLIRP_IP_ADDRESS:-192.168.5.15}/127.0.0.1/" -i $KUBECONFIG
79
79
mkdir -p ${HOME:-/root}/.kube && cp -f $KUBECONFIG ${HOME:-/root}/.kube/config
80
80
probes :
81
- - script : |
81
+ - description : " kubectl to be installed"
82
+ script : |
82
83
#!/bin/bash
83
84
set -eux -o pipefail
84
85
if ! timeout 30s bash -c "until command -v kubectl >/dev/null 2>&1; do sleep 3; done"; then
@@ -87,7 +88,8 @@ probes:
87
88
fi
88
89
hint : |
89
90
See "/var/log/cloud-init-output.log". in the guest
90
- - script : |
91
+ - description : " kubeadm to be completed"
92
+ script : |
91
93
#!/bin/bash
92
94
set -eux -o pipefail
93
95
if ! timeout 300s bash -c "until test -f /etc/kubernetes/admin.conf; do sleep 3; done"; then
@@ -96,10 +98,11 @@ probes:
96
98
fi
97
99
hint : |
98
100
The k8s kubeconfig file has not yet been created.
99
- - script : |
101
+ - description : " kubernetes cluster to be running"
102
+ script : |
100
103
#!/bin/bash
101
104
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
103
106
echo >&2 "kubernetes cluster is not up and running yet"
104
107
exit 1
105
108
fi
You can’t perform that action at this time.
0 commit comments