advancedKubernetes Fundamentals: Docker vs K8s, Runtime, Pods & Deployments

What happens during a Kubernetes rolling update?

The Deployment controller incrementally creates new Pods with the updated spec (bounded by maxSurge, how many extra Pods can exist temporarily) and, once each new Pod passes its readiness probe, terminates a corresponding old Pod (bounded by maxUnavailable, how many can be down at once). This continues until all old Pods are replaced; if new Pods fail readiness checks, the rollout can be configured to halt or the operator can issue a rollback to the previous ReplicaSet.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

Continue to What is the practical relationship between Docker (from earlier chapters) and Kubernetes?← Back to all Docker questions