Can a generic/global pull secret be configured for Red Hat OpenShift Container Platform 4.x node?

Solution Verified - Updated -

Issue

  • How can one configure registry credentials on the Red Hat OpenShift Container Platform 4.4 nodes to avoid having to configure each of projects with a special pull secret, not to mention for future projects?
  • When one executes the command below, it tries to fetch images from registry.redhat.io and it fails with the auth error.
$ oc start-build <BC-name>

error: build error: After retrying 2 times, Pull image still failed due to error: unable to retrieve auth token: invalid username/password: unauthorized: Please login to the Red Hat Registry using your Customer Portal credentials. Further instructions can be found here: https://access.redhat.com/RegistryAuthentication
  • The global pull-secret is already configured as per this link which doesn't help.

Environment

  • Red Hat OpenShift Container Platform 4.4

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