Configuring an image content source policy for IBM Software Hub software images
If you mirror images to a private container registry, you must tell your cluster where to find the software images by creating an image content source policy or image digest mirror set.
- Installation phase
-
Setting up a client workstation
Setting up a cluster
Collecting required information
Preparing to run installs in a restricted network
Preparing to run installs from a private container registry
Preparing the cluster for IBM Software Hub
Preparing to install an instance of IBM Software Hub
Installing an instance of IBM Software Hub
Setting up the control plane
Installing solutions and services
- Who needs to complete this task?
- Cluster administrator A cluster administrator must complete this task.
- When do you need to complete this task?
- One-time setup If you mirrored the IBM Software Hub software images to a private container registry, you must complete this task before you can install IBM Software Hub.
Before you begin
Ensure that you source the environment variables before you run the commands in this task.
If your cluster is running Red Hat® OpenShift® Container Platform Version 4.14 or later, check for existing image content source policies before you complete this task:
- Run the following command to get the list of image content source policy resources:
oc get imageContentSourcePolicy
- If the command returns
No resources found
, proceed to About this task. - If the command returns a list of image content source policies, complete Converting ImageContentSourcePolicy (ICSP) files for image registry repository mirroring in the Red Hat OpenShift Container Platform documentation:
- If the command returns
About this task
Use the cpd-cli
manage
apply-icsp
command to create or update the image content source
policy or image digest mirror set for the IBM Software Hub images.
- On Version 4.12, the
cpd-cli
automatically creates an image content source policy. - On Version 4.14 and later, the
cpd-cli
automatically creates an image digest mirror set.
Procedure
Results
- On Version 4.12, the
cpd-cli manage apply-icsp
command creates the required an image content source policy. - On Version 4.14 and later, the
cpd-cli manage apply-icsp
command creates the required image digest mirror set.
cpd-cli
manage
apply-icsp
command.If you are installing IBM Software Hub on Red Hat OpenShift Service on AWS (ROSA), changing the image content source policy or image digest mirror set could result in Red Hat violations that could lead to limited support from Red Hat. For details, see Red Hat Online Services Product Appendix 4.