Interview Prep/Kubernetes/Reliability & Rollouts

How do you achieve zero-downtime upgrades with the AWS ALB and `ip` targets?

AdvancedProductionReliability & Rollouts
Answer

Enable the controller's Pod readiness gate (elbv2.k8s.aws/pod-readiness-gate-inject: enabled on the namespace), so a Pod is Ready only when the target is healthy in the target group. Add a preStop sleep greater than the deregistration delay interplay (set the target group deregistration_delay.timeout_seconds to match), and maxUnavailable: 0.

All Kubernetes questions

More on Reliability & Rollouts