Under Load, Healthy Pods Keep Restarting. Add Replicas?
During traffic peaks, Kubernetes keeps killing pods that are not actually broken. A teammate wants to scale up replicas. Defend the real fix.
Answer key reviewed by Branko Petric
Read first: Kubernetes Observability: Logs, Metrics, and Monitoring
Your decision
During peak traffic your pods enter a restart loop and latency gets worse, even though the app is not crashing. kubectl shows liveness probe failures and restarts. A teammate says just increase the replica count to spread the load. Do you agree, and what do you do instead?
The situation
Your service runs on Kubernetes behind a Service and an ingress. During daily traffic peaks, latency climbs and then pods start cycling. kubectl get pods shows RESTARTS incrementing and kubectl describe pod reports Liveness probe failed with a timeout. The application logs show no panics or fatal errors around the restarts.
Context
The Deployment defines a single httpGet liveness probe with timeoutSeconds set to 1 and failureThreshold set to 1, checking a handler that also does application work. There is no readiness probe and no startupProbe. CPU sits near its limit at peak. A teammate is convinced the pods are simply overloaded and wants to raise the replica count to spread traffic.
Worked interview answers
- Kubernetes Troubleshooting Interview Questions: What to Run and What They Ask Next
Kubernetes troubleshooting interview questions with the kubectl commands to run first, the pushback interviewers use, and weak vs strong answers for 8 cases.
- How to Prepare for an SRE Interview: What Each Round Tests and How to Practice It
How to prepare for an SRE interview, round by round: coding, Linux and networking, SLO-based design, incident deep-dives and behavioral, plus a 4-week plan.
Related challenges
- Pods Keep OOMKilling: Scale Up or Fix the Leak?
A service OOMKills every few hours. Adding replicas or raising memory limits buys time. Defend whether to scale around it or fix the root cause.
- p99 Spikes With CPU at 40 Percent of Limit. Add Replicas?
A latency-sensitive service shows p99 spikes while average CPU sits at 40 percent of its limit. A teammate blames the database. Defend the real cause.
- A Traffic Spike Caused an Outage. Autoscaling Did Not Save You.
A spike took the service down even though autoscaling was on. A teammate wants to crank the max replicas. Defend the real fix.
- Service A Intermittently Cannot Reach Service B
One in twenty calls between two services fails. A teammate wants to add retries and move on. Defend how you actually find the cause.