Creating an image pull secret
Create an image pull secret in your Red Hat OpenShift namespace to allow the cluster to pull container images from the IBM Entitled Registry.
Procedure
-
To create an image pull secret by using the Red Hat OpenShift web console, complete the following steps:
- Ensure that the target namespace is selected as the current project in the Red Hat OpenShift web console.
- Click Secrets under the Workloads main menu on the left-hand side of the console screen.
- Click the Create button, and select the Image Pull Secret option from the drop-down menu.
- Configure the following values in the form:
- Secret Name: Type the name that you want to use for the secret (record this name for the Helm installation).
- Authentication Type: Select Image Registry Credentials.
- Registry Server Address: Type
cp.icr.io. - Username: Type
iamapikey(or the specific username provided with your entitlement). - Password: Type the API key value provided with your entitlement.
- Email: Type your email address (optional).
- Click Create.
-
To create the secret from the command-line interface, run the oc create secret command:
oc create secret docker-registry <secret_name> \ -n <target_namespace> \ --docker-server=cp.icr.io \ --docker-username=iamapikey \ --docker-password=<password> \ --docker-email=<email>