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.
More on Reliability & Rollouts
What are the must-have settings for a production Deployment?BeginnerWhy use image digests or immutable tags instead of `latest`?BeginnerWhat does a PodDisruptionBudget protect and how do you size it?BeginnerHow do you set graceful shutdown right?BeginnerWhy do rollouts sometimes cause brief 502/503 errors?BeginnerHow many replicas should you run and how do you spread them?Beginner