KubernetesBattleOpsAsked in Platform engineer, SRE and DevOps engineer rounds
preStop is shorter than the time it takes to leave the endpoints list. Why do deploys return 502?
The scenario
preStop sleeps one second. Endpoints take several seconds to update. The process exits, and callers still have the pod. Every deploy shows a short 502 spike. The team calls it harmless.
Model answer
Unlock the answer interviewers want to hear
Model answer, what to add at your level, the follow-up, and common mistakes.
INTERVIEW BANK PASSNot on sale right nowEvery drill and interview experience. Renews monthly.
DEVOPS PARKInterview Bank includedInterview Bank included, plus War Zone, labs, roadmaps and Daily Challenge.See DevOps Park plans
3 questions in this drill are free.Read a free one
How to answer at your level
The follow-up they'll ask
Common mistakes