Interview Prep/Kubernetes/Deployments and rollouts

You want a rolling update to wait until a new pod has been healthy for 30 seconds. What setting do you use?

IntermediateScenarioDeployments and rollouts
Answer

Situation read → Pods pass readiness quickly but crash 15 seconds later because of a lazy-loaded dependency.

What I'd do →

  1. Set minReadySeconds: 30 on the Deployment
  2. Keep a realistic readinessProbe that checks dependencies the app needs to serve
  3. Consider a startupProbe for slow boots
  4. Watch kubectl rollout status to see that availability is delayed

Why → minReadySeconds tells the controller how long a pod must be Ready, without any container crashing, before it counts as available and the rollout can advance.

Interview tip → Contrast with readiness: readiness says "can serve now", minReadySeconds says "has stayed healthy".

All Kubernetes questions Roadmap: Kubernetes core

More on Deployments and rollouts