← Kubernetes learning pathKubernetes · Module 3 of 10
Pods and Deployments
Run your app with pods, ReplicaSets and Deployments.
📖 Key ideas
- A pod is the smallest unit: one or more containers sharing network/storage.
- Pods are temporary; don't create them directly in production.
- A Deployment manages ReplicaSets that keep N pod replicas running.
- Rolling updates replace pods gradually.
- kubectl apply -f deployment.yaml creates or updates resources.
💡 Real-life example: A Deployment is a manager keeping exactly N workers on shift, replacing anyone who leaves.
PodSmallest deployable unit
ReplicaSetKeeps a number of pod copies
DeploymentManages ReplicaSets and updates
Rolling updateGradual replacement of pods