Thursday, April 23, 2026

What is the difference between a Pod, ReplicaSet, and Deployment?


In Kubernetes:

- Pod: The smallest deployable unit. It runs one or more containers that share networking and storage.

- ReplicaSet: Ensures a specified number of identical Pods are running at all times. It automatically creates or deletes Pods to maintain the replica count.

- Deployment: A higher-level object that manages ReplicaSets. It provides declarative updates, rolling deployments, and easy rollbacks.

In short:  
Pod = runs your app  
ReplicaSet = keeps the right number of Pods alive  
Deployment = handles updates and rollouts on top of ReplicaSet

No comments:

Post a Comment