Interview Prep/Kubernetes/Cluster operations: certs, drains, rollouts and quotas

A rollout is stuck at 1 new Pod Pending, and with `maxUnavailable: 0` no old Pod is removed.

IntermediateTroubleshootingCluster operations: certs, drains, rollouts and quotas
Answer

Likely causes → With maxSurge: 1, maxUnavailable: 0, the rollout needs room for one extra Pod. The cluster or the namespace quota has no room for it, so the surge Pod stays Pending and the rollout never progresses.

Diagnose →

kubectl get deploy api -o jsonpath='{.spec.strategy.rollingUpdate}{"\n"}'
kubectl describe pod <pending-new-pod> | grep -A3 FailedScheduling
kubectl describe resourcequota -n api

Fix → Add capacity or quota headroom; or allow maxUnavailable: 1 if the service tolerates one fewer replica briefly.

Prevent → Quotas and cluster capacity sized with surge headroom (at least one Pod per Deployment, or 25%).

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

More on Cluster operations: certs, drains, rollouts and quotas