I'm struggling to understand the difference between Deployments and Pods in Kubernetes.
A Deployment provides declarative updates for Pods and ReplicaSets.
Pods are the smallest deployable units of computing that you can create and manage in Kubernetes.
It seems like kind:Pod
can be used interchangeably kind: Deployment
and deployments allow for Replica (which is pretty much the point of Kubernetes). Why would you ever use a Pod?
Can someone:
- Explain the essential difference between Pods/Deployments +
- Describe a use case where pods are preferable over deployments?
In short:
With Pods
With Deployment