Kubernetes Deployment
Question
What does a Kubernetes Deployment manage?
Hint
Deployments declaratively manage Pod replicas.
Explanation
A Kubernetes Deployment manages a set of replicated Pods, providing declarative updates, rolling deployments, and rollbacks. Spec: replicas (desired count), selector (which Pods to manage), template (Pod spec). The Deployment creates a ReplicaSet, which creates Pods. Update the image → Deployment creates a new ReplicaSet, scales it up, and scales the old down (rolling update). Rollback: kubectl rollout undo. Scale: kubectl scale deployment. Strategies: RollingUpdate (default), Recreate. Deployments are the most common workload type in K8s. Use StatefulSets for stateful apps, Jobs for one-off tasks.
Related Resources
Related Lessons
- Kubernetes
Learn K8s.
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.