Docker and CI/CD · Senior · Question 29 of 75
You redeploy my-app:latest but some nodes still run old code. Why?
- ✓Correct answer: Nodes with the tag cached don't pull it again
- 2Kubernetes caches the image for 24 hours
- 3The registry serves old layers to some nodes
Explanation
With IfNotPresent, a node reuses the image it has. Unchanged specs also don't trigger a rollout. Deploy immutable tags or digests instead.