Sobes.tech
Intern

What are Pod, Deployment, and ReplicaSet in Kubernetes?

sobes.tech AI

Answer from AI

  • Pod — the smallest deployable unit in Kubernetes, which contains one or more containers running on the same node and sharing network and storage.

  • ReplicaSet — a controller that ensures a specified number of Pod copies (replicas) are running, automatically creating or deleting them to maintain the desired state.

  • Deployment — a higher-level abstraction that manages ReplicaSets and allows easy updates, rollbacks, and scaling of Pods.

Example: Deployment creates a ReplicaSet, and the ReplicaSet creates the required number of Pods.