All jobs / DevOps / SRE / cloud / Kubernetes
DevOps / SRE / cloud interview question · 1–3 years
A pod is killed in a loop while it is still migrating. Which probe was wrong?
The strongest answer
Liveness fired too early — I want a startup probe or a longer grace, and readiness to keep traffic off until migrate is done
Why it works
Exactly. Startup / grace for boot work; readiness for traffic; liveness for deadlock. One URL for all three is how you flap.
What a good answer covers
- Startup or grace for migrate.
- Readiness gates traffic.
- Liveness is for deadlock.
- Do not use one URL for all three blindly.
Answers that fall short
- Close, but not the strongest: I should remove all probes; they cause restarts
No probes is how you serve dead. - Weak: I should set liveness to the same URL as a 10-minute migrate
Liveness on a long migrate is a kill loop. - Red flag: I should mark the pod privileged so it cannot be killed
Privileged is not a probe strategy.
Who gets asked this
More Kubernetes questions
- Pods are Pending while nodes look empty in the console. What did you forget?
- You have five HTTP services. One Service of type LoadBalancer each, or an Ingress?
- What does Helm give you over applying raw YAML, and what does `helm rollback` not do?
- The pods are Running, but calls to the Service get connection refused. Walk me through the diagnosis.
- The cluster is two versions behind. How do you catch up?
- Pods cannot reach an external API that works from your laptop. What do you check in the cluster?
- HPA keeps adding pods; memory still climbs per pod. What is going on?
- A cluster has no NetworkPolicies. What do you install without boiling the ocean?