FahamLah

Commands

kubectl wait --for=condition=Ready pod/<name>

kubectl wait --for=condition=Ready pod/<name> [--timeout=…]

Risk: Safe

What it does

Waits until something becomes true.

When to use it

In scripts, before the next step.

Example

$ kubectl wait --for=condition=Ready pod/tray --timeout=60s

Wait until the tray is ready.