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 →
- Set
minReadySeconds: 30on the Deployment - Keep a realistic readinessProbe that checks dependencies the app needs to serve
- Consider a
startupProbefor slow boots - Watch
kubectl rollout statusto 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".
More on Deployments and rollouts
You applied a new image tag and the rollout seems stuck at "1 out of 3 new replicas have been updated". What do you check first?BeginnerHow do you roll back a bad release and verify you are back on the previous version?BeginnerA rollout must never reduce capacity below current replicas. How do you configure the strategy?IntermediateYou need a blue/green deployment without a service mesh. How do you do it with plain Kubernetes?IntermediateHow would you do a canary release with only Deployments and a Service?IntermediateWhat is the difference between Recreate and RollingUpdate strategies and when would you pick Recreate?Beginner