K8s Waiting for Condition=Available=True
While working with Ansible for standing up a vanilla Kubernetes 1.25.5 cluster I found myself separating the the initial bootstrapping of the cluster, which includes intalling the CNI antrea
from the rest of the configuration (metrics
,metallb
,contour
) due to waiting for antrea
to become Ready.
Found this post from Fabian Lee
1
2
3
4
5
# this wait for 'Available=True' only works for initial deployment, not rolling
kubectl wait deployment -n default golang-hello-world-web --for condition=Available=True --timeout=90s
# wait using 'rollout status'
kubectl rollout status deployment golang-hello-world-web -n default --timeout=90s
This post is licensed under
CC BY 4.0
by the author.