What is Nostr?
Aaron Longchamps /
npub105t…hvqj
2024-06-17 17:46:33

Aaron Longchamps on Nostr: I'm curious if kubectl has a good way to wait for all pods to become ready when ...

I'm curious if kubectl has a good way to wait for all pods to become ready when applying a yaml file via the command line.

For example, I'm using kubectl apply -f metallb.yaml to setup MetalLB for my load balancer. This spins up 1 controller pod and 5 speakers which take a little bit of time to initialize.

I could put sleep statements in to Ansible, but I'd rather Kubernetes tell me when it's ready.

#homelab #kubernetes
Author Public Key
npub105tvw9qeyyyuf5g6kg8xas8qter79hykwa6vqgx8ycljgd2p8zss4chvqj