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
- Click the IBM container software library link.
- Click View library. The Access your container software page opens.
- On the Entitlement key section, click Copy key to copy the entitlement key in the clipboard.
- 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
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