How to specify multiple image pull secrets in OpenShift
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.