$ ./guess_the_languageDevOps
DevOps · medium · #255

When will the kubelet pull this image?

containers:
- name: api
  image: registry.example.com/api:1.4.2
  imagePullPolicy: IfNotPresent
  1. Each time any pod using it starts
  2. Never; nodes must be preloaded
  3. Only if the node lacks that image
  4. Once a day, to look for updates
IfNotPresent uses a cached copy when the node already has it and pulls only when it does not. Always pulls on every start; Never relies entirely on preloaded images.
Play DevOps ▸