How do readiness, liveness and startup probes interact with traffic?
BeginnerProductionKubernetes & Service Networking in Production
Answer
Readiness decides whether a pod is in Service endpoints (no readiness means no traffic). Liveness restarts the container if it fails, so keep it shallow and never dependent on downstream services. Startup probe delays the others for slow starters.
A readiness probe that checks the database will remove all pods during a DB blip; use a shallow check or degrade gracefully.
More on Kubernetes & Service Networking in Production
How do you expose an application on Kubernetes to the internet in production?BeginnerALB IP mode versus instance mode on EKS: which should you use?IntermediateHow do you achieve graceful pod shutdown with no dropped requests?AdvancedHow do you design default-deny NetworkPolicies without breaking DNS?IntermediateHow do you debug "pod cannot reach service" in Kubernetes?AdvancedHow do you scale CoreDNS and avoid DNS becoming an outage source?Advanced