Interview Prep/Real-World Interview/Kubernetes, GitOps & deployment strategy

How did you ensure zero-downtime deployments?

IntermediateBehavioralKubernetes, GitOps & deployment strategy
Answer

Good answer looks like → "Readiness probes so traffic only reaches ready pods, maxUnavailable: 0, a preStop hook with a short sleep so the load balancer deregisters the pod before it stops, graceful shutdown handling SIGTERM within terminationGracePeriodSeconds, and PDBs. We confirmed with a k6 test running through a deploy: zero errors."

Follow-ups to expect → Why is the preStop sleep needed? How did ALB target deregistration delay fit in?

Red flags → Claiming zero downtime without having measured it.

All Real-World Interview questions Roadmap: Interview readiness

More on Kubernetes, GitOps & deployment strategy