Deployments and ReplicaSets
A Deployment manages updates to Pod templates and replica counts through ReplicaSets. Controllers replace lost Pods to maintain desired state. Pod names are not stable application interfaces. Review selectors and template labels together because they identify which Pods belong to the workload. For example, a Deployment requests two nginx replicas; deleting one Pod causes the controller to create another replacement.
A Deployment requests two nginx replicas; deleting one Pod causes the controller to create another replacement.
A Deployment declares three replicas of an application Pod template. Its controller manages a ReplicaSet that maintains the desired count. When one Pod disappears, reconciliation creates a replacement rather than preserve that Pod's name. Updating the template creates a new rollout managed according to the Deployment strategy.
A Deployment coordinates desired workload updates. A ReplicaSet maintains a matching replica count. A Pod template supplies configuration for new Pods. Selector and template labels must agree so ownership is correct. Scaling replica count changes the number of desired Pods, not the capacity of the database or available nodes. Unscheduled replacements can leave the application below its availability objective. Inspect desired, updated, ready, and available counts separately. The controller helps maintain the declared structure, but readiness checks and sufficient capacity determine whether replacements actually serve useful traffic instead of merely exist as accepted objects.
A Deployment requests two nginx replicas; deleting one Pod causes the controller to create another replacement.
Do not overlook this operational distinction: Review selectors and template labels together because they identify which Pods belong to the workload.