ImagePullPolicy set to Always even though DC sets it to IfNotPresent

Solution Unverified - Updated -


  • The deploymentconfig sets ImagePullPolicy to IfNotPresent, however, the pod is always set to Always
$ oc get rc docker-registry-5 -o yaml | grep -i image
        imagePullPolicy: IfNotPresent

$ oc get pod docker-registry-5-h5qrb -o yaml | grep -i image
    imagePullPolicy: Always
  • The migrate storage step fails on this difference
$ oc adm migrate storage

E1011 12:00:41.057431 error:     -n openshift-node pods/sync-xxxxx: Pod "sync-xxxxx" is invalid: spec: Forbidden: pod updates may not change fields other than `spec.containers[*].image`, `spec.initContainers[*].image`, `spec.activeDeadlineSeconds` or `spec.tolerations` (only additions to existing tolerations)
. . .

A: Always" . . .}

B: IfNotPresent" . . .}


  • Red Hat OpenShift Container Platform
    • 3.X

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In