Interview Prep/CI/CD/Deployment, Kubernetes and GitOps Failures

`kubectl rollout status` hangs: `Waiting for deployment "app" rollout to finish: 1 old replicas are pending termination...`

AdvancedTroubleshootingDeployment, Kubernetes and GitOps Failures
Answer

Likely causes → New pods not Ready (failing readiness), PDB blocking, long termination grace.

Diagnose →

kubectl get pods -l app=app
kubectl describe pod <new-pod>
kubectl logs <new-pod> --previous

Fix → Fix the probe or app startup issue; adjust terminationGracePeriodSeconds.

Prevent → Set progressDeadlineSeconds so the pipeline fails fast.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment, Kubernetes and GitOps Failures