Kubernetes Container Image Pull Concepts: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 14: Line 14:
The pull policy is configured on a per-container basis using the [[Kubernetes_Pod_Manifest#imagePullPolicy|imagePullPolicy]] tag in the pod manifest.
The pull policy is configured on a per-container basis using the [[Kubernetes_Pod_Manifest#imagePullPolicy|imagePullPolicy]] tag in the pod manifest.


There are three possible values: <code>Always</code>, <code>IfNotPresent</font> and <code>Never</code>. This attribute is optional, and if it is not specified, it is inferred based on the image tag. The default is "Always" if ":latest" tag is specified, or "IfNotPresent" otherwise.
There are three possible values: <code>Always</code>, <code>IfNotPresent</code> and <code>Never</code>. This attribute is optional, and if it is not specified, it is inferred based on the image tag. The default is "Always" if ":latest" tag is specified, or "IfNotPresent" otherwise.

Revision as of 17:20, 26 August 2020

External

Internal

Overview

A pod's containers pull their images from their respective repositories while the pod is in Pending phase. Technically, it is the kubelet that performs the image pulling on behalf of the pod.

Pull Policy

The pull policy is configured on a per-container basis using the imagePullPolicy tag in the pod manifest.

There are three possible values: Always, IfNotPresent and Never. This attribute is optional, and if it is not specified, it is inferred based on the image tag. The default is "Always" if ":latest" tag is specified, or "IfNotPresent" otherwise.