To create an image pull secret, obtain the IBM® Sterling™ Order Management System Software container
images from IBM Entitled Registry and configure those images in the OMEnvironment
custom resource.
Procedure
- Obtain container images from the IBM Entitled Registry. For more information, see Obtaining container images from IBM Entitled Registry.
- Provide the names of the
imagePullSecrets in the image
parameter of the OMEnvironment as shown in the following example. If
the images are present in any other registry, ensure to create an image pull secret for all such
registries.
image:
imagePullSecrets:
- name: <image-Pull-Secret1>
- name: <image-Pull-Secret2>
- Run the following command to create an image pull secret.
oc create secret docker-registry <image_pull_secret_name> --docker-server=<Server> --docker-username=<User_name> --docker-password=<Password> --docker-email=<Email>
Optional. Run the following command to create Docker pull
secret.
kubectl create secret docker-registry <secret name> --docker-username="iamapikey" --docker-password="<Entitled registry API key>" --docker-email="<email address" --docker-server="cp.icr.io" -n service
An
image pull secret is successfully created and encoded.