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.
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