Creating the Image Pull Secrets

If you are using the OpenShift Container Platform internal registry and are pulling from image streams located in the same project, then your pod service account should already have access to the container image and no additional action should be required.

However, in other scenarios, like pulling the Images from a secured/private registry, it is required to have proper authorization. This can be obtained by creating the Pull Secrets.

  1. Install and configure the OpenShift CLI Tool from OpenShift Portal if not done.

  2. Create the Pull Secret using the OpenShift Container Platform CLI (OC).

›_ Console

# oc create secret docker-registry <pull_secret_name> --docker- server=<registry_server> --docker-username=<user_name> --docker- password=<password> --docker-email=<email>

a1ac553b-7137-4da1-9e3e-86b6297642ac.jpg


Creating pull secrets

  1. Add the above created secret to the Service Account.

›_ Console

# oc secrets link default <pull_secret_name> --for=pull