Skip to content

Commit

Permalink
Merge pull request #743 from Ankurk99/dev-branch
Browse files Browse the repository at this point in the history
fix k3s installation script to use proper kubectl command
  • Loading branch information
nyrahul authored Jul 7, 2022
2 parents fd5028f + 847173a commit b7a0176
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions contribution/k3s/install_k3s.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ sleep 15

for (( ; ; ))
do
status=$(/usr/local/bin/kubectl get pods -A -o jsonpath={.items[*].status.phase})
status=$(kubectl get pods -A -o jsonpath={.items[*].status.phase})
[[ $(echo $status | grep -v Running | wc -l) -eq 0 ]] && break
echo "wait for initialization"
sleep 1
done

/usr/local/bin/kubectl get pods -A
kubectl get pods -A

0 comments on commit b7a0176

Please sign in to comment.