⌂ Home

Deployment → ReplicaSet → Pod Hierarchy

Understanding Kubernetes workload management - Hover over components for details

Level 1: Deployment
D
nginx-deployment
Deployment
Replicas: 3
Strategy: Rolling Update
Purpose: Declarative updates for Pods and ReplicaSets
Selector: app: nginx
Deployment Controller
Provides declarative updates for Pods and ReplicaSets. Manages rolling updates, rollbacks, and scaling operations. Creates and owns ReplicaSets.
Level 2: ReplicaSet (Managed by Deployment)
RS
nginx-deployment-75675f5897
ReplicaSet
Desired: 3 | Current: 3 | Ready: 3
Purpose: Ensures exact number of Pod replicas
Owner: nginx-deployment
Selector: app: nginx, pod-template-hash: 75675f5897
ReplicaSet Controller
Maintains a stable set of replica Pods running at any given time. Uses label selectors to identify which Pods to manage. Created and owned by Deployment.
Level 3: Pods (Managed by ReplicaSet)
P
nginx-...-7ci7o
Pod
Status: Running
IP: 10.244.1.5
Node: worker-1
app: nginx
pod-template-hash: 75675f5897
Pod 1
Running nginx container. If this Pod is deleted, the ReplicaSet immediately creates a replacement to maintain desired count.
P
nginx-...-a1b2c
Pod
Status: Running
IP: 10.244.2.8
Node: worker-2
app: nginx
pod-template-hash: 75675f5897
Pod 2
Running nginx container. Managed by ReplicaSet, which ensures this Pod is healthy and running.
P
nginx-...-d3e4f
Pod
Status: Running
IP: 10.244.1.9
Node: worker-1
app: nginx
pod-template-hash: 75675f5897
Pod 3
Running nginx container. Part of the replica set maintaining 3 desired replicas.
Key Concept: The Deployment owns the ReplicaSet, and the ReplicaSet owns the Pods. This ownership is tracked via metadata.ownerReferences field, enabling cascading deletion and proper lifecycle management.