Skip to content

What it is

A Deployment is a declarative wrapper for Pods: you specify the desired state (image, replicas, strategy) and Kubernetes reconciles continuously.

A Deployment does not run Pods directly. It creates a ReplicaSet, which creates Pods. When you update the Deployment's PodTemplate, it creates a new ReplicaSet with the new template, scales it up, and scales the old one down. That is the rolling update: no downtime, no lost requests, verified by the readinessProbe of each Pod.