How to specify multiple image pull secrets in OpenShift

Solution Verified - Updated -

Issue

  • Need to run multiple docker registries (external to OCP) to reach the high availability;
  • How to use multiple registry secrets in a DeploymentConfig?
  • When using multiple images and registries in a deployment, the pod gets stuck with imagePullBackOff with an event error like:

    Failed to pull image "registry.example.com/user/image@sha256:hash": rpc error: code = Unknown desc = unauthorized: authentication required
    

Environment

  • Red Hat OpenShift Container Platform (OCP) 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

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content