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

The CD pipeline fails with `error: deployment "api" exceeded its progress deadline` from `kubectl rollout status`.

IntermediateTroubleshootingCluster operations: certs, drains, rollouts and quotas
Answer

Likely causes → New Pods did not become Ready within progressDeadlineSeconds (600s default): image pull failures, crash loops, failing readiness, Pending for capacity or quota. The Deployment condition becomes Progressing=False, reason ProgressDeadlineExceeded. Kubernetes does not roll back automatically.

Diagnose →

kubectl rollout status deploy/api --timeout=0s
kubectl get rs -l app=api                          # new RS with 0 ready
kubectl describe deploy api | sed -n '/Conditions/,/Events/p'
kubectl get pods -l app=api,pod-template-hash=<new-hash>

Fix → Roll back to stop the bleeding, then debug the new Pods:

kubectl rollout undo deploy/api

Prevent → Pipelines run kubectl rollout status --timeout and undo on failure, or use Argo Rollouts / Helm --atomic for automatic rollback.

All Kubernetes questions Roadmap: Kubernetes networking, storage & scaling

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