Creating the imagePullSecrets for Engineering Lifecycle Management instance

The Engineering Lifecycle Management applications images are stored in IBM® Entitled Registry. They are pulled from the registry and used to install the Engineering Lifecycle Management applications in the Red Hat® OpenShift®. An imagePullSecrets must be created to pull the container image in the pod. The entitlement key that is obtained from the registry is used to create the image pull secret.

Before you begin

You need the appropriate permissions to create the imagePullSecrets. For more information about the user roles in the Red Hat OpenShift, see User roles mapping in Engineering Lifecycle Management on Hybrid Cloud
  1. Click the IBM container software library link.
  2. Click View library. The Access your container software page opens.
  3. On the Entitlement key section, click Copy key to copy the entitlement key in the clipboard.
  4. You need to provide the entitlement key when you create the imagePullSecrets.

About this task

You can create the imagePullSecrets by using any one the following methods:

Red Hat OpenShift Container Platform web console method

Procedure

Create the imagePullSecrets by using Red Hat OpenShift Container Platform web console

  1. Log in to the Red Hat OpenShift Container Platform web console
  2. Click Projects and select the project where you want to install the Engineering Lifecycle Management operator.
  3. Click Workloads > Secrets.
  4. Select Image pull secret from the Create list.
  5. On the Create Image Pull Secret page, enter the following details.
    1. On the Create Image Pull Secret page, enter the following details.
      1. In the Secret Name field, enter ibm-entitlement-key.
      2. From the Authentication Type list, select Image registry credentials.
      3. In the Registry Server Address field, enter cp.icr.io/cp.
      4. In the Username field, enter cp.
      5. In the Password field, enter the value of <entitlement-key> .
      6. In the Email field, enter <your-email-address>
    2. Click Create to save the image pull secret.

Red Hat OpenShift CLI method

Procedure

Create the imagePullSecrets in the Red Hat OpenShift cluster by using the CLI method.
oc create secret docker-registry <secret-name> --docker-server=<registry-server> --docker-username="<user-name>" --docker-password="<password>" --docker-email="<emial-id>" -n <namespace_name>

Following is the example

oc create secret docker-registry ibm-entitlement-key --docker-server=cp.icr.io/cp --docker-username="cp" --docker-password="example-entitlement-key" --docker-email="example@ibm.com" -n example

Kubernetes CLI method

Procedure

Create the imagePullSecrets by using the Kubernetes CLI method by using the following command
kubectl create secret docker-registry <secret-name> --docker-server=<registry-server> --docker-username="<user-name>" --docker-password="<password>" --docker-email="<email-id>" -n <namespace_name>

Following is the example

kubectl create secret docker-registry ibm-entitlement-key --docker-server=cp.icr.io/cp --docker-username="cp" --docker-password="example-entitlement-key" --docker-email="example@ibm.com" -n example