When using ImageStream name in DeploymentConfig the pod's image gets resolved to docker.io instead of internal registry

Solution Verified - Updated -

Issue

  • When using ImageStream name in DeploymentConfig as image value, the actual image in the Pod gets resolved to docker.io instead of internal registry.

  • Getting this message in the OpenShift events output:

Failed to pull image "example": rpc error: code = Unknown desc = Error reading manifest in docker.io/example/example: errors: denied: requested access to the resource is denied unauthorized: authentication required
  • Cannot pull images after update from 4.6.44 to 4.6.46
  • The image stream names are no longer resolved into image references in pods that are created by deployment configs, in some cases in statefulsets, and possibly in other objects.

Environment

  • Red Hat OpenShift Container Platform
    • 4.6.45+
    • 4.7.28+
    • 4.8.4+
    • 4.9.0+

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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content