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

Deployment goes green in CI but users see 502/503 errors for a minute.

AdvancedTroubleshootingDeployment, Kubernetes and GitOps Failures
Answer

Likely causes → Readiness probe passes too early, load balancer not yet registering pods, missing preStop drain.

Diagnose → Compare pod Ready timestamps to ALB/ingress target health; check ingress logs.

Fix → Fix readiness to reflect real readiness, add preStop sleep and minReadySeconds.

Prevent → Zero-downtime tests in staging with load.

All CI/CD questions Roadmap: CI/CD fundamentals

More on Deployment, Kubernetes and GitOps Failures