> For the complete documentation index, see [llms.txt](https://notes.eliasnorrby.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.eliasnorrby.com/kubernetes/waiting-for-a-pod.md).

# Waiting for a pod to be ready

If we need to wait for a pod to come up before proceeding with other actions, we can use `kubectl wait`:

```bash
kubectl wait --for=condition=ready pod --selector "app=my-app" --timeout=60s
```

Source: `man kubectl-wait`
