Interview Prep/Kubernetes/Reliability & Rollouts

How do init containers and readiness gates help ordering and external dependencies?

IntermediateProductionReliability & Rollouts
Answer

Init containers can wait for DNS/DB (until nc -z db 5432; do sleep 2; done), but a better pattern is apps retrying with backoff. Readiness gates (readinessGates with custom conditions) hold a Pod out of Ready until an external controller approves, as the AWS Load Balancer Controller does to wait for target registration.

All Kubernetes questions

More on Reliability & Rollouts