Docker and CI/CD · Middle · Question 64 of 75
Why do you usually create a Deployment rather than Pods directly?
- 1Deployments give each pod a public IP address
- ✓Correct answer: It keeps the replica count and manages rolling updates
- 3Pods can't run containers without a Deployment
Explanation
A bare pod that dies is gone. A Deployment (through a ReplicaSet) recreates pods and rolls out new versions gradually.