manage
apply-icsp
Upgrade to IBM Software Hub Version 5.1 before IBM Cloud Pak for Data Version 4.6 reaches end of support. For more information, see Upgrading IBM Software Hub in the IBM Software Hub Version 5.1 documentation.
Required for private container registries. If you mirrored images to a private container registry, create the required image content source policy to enable the cluster to pull the images from your private container registry.
apply-icsp command is
applicable only if you mirror the IBM Cloud Pak for Data
software images to a private container registry.Extended description
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. For more information, see Configuring an image content source policy.
Run this command to apply the required image content source policy to your cluster.
After you run the command, get the status of the nodes:
oc get nodesWait until all the nodes
are Ready before you run other commands. For example, if you see
Ready,SchedulingDisabled, wait for the process to
complete:
NAME STATUS ROLES AGE VERSION
master0 Ready master 5h57m v1.20.0
master1 Ready master 5h57m v1.20.0
master2 Ready master 5h57m v1.20.0
worker0 Ready,SchedulingDisabled worker 5h48m v1.20.0
worker1 Ready worker 5h48m v1.20.0
worker2 Ready worker 5h48m v1.20.0You
can use the watch oc get nodes command to monitor the status of the nodes. The
command provides an update every 2 seconds. When all of the nodes return Ready you
can exit the command by pressing Ctrl+C.
Alternatively, if you find
that the oc get nodes command returns Ready prematurely, you can
use the oc get mcp command to get the real-time status of the nodes.
Syntax
cpd-cli manage apply-icsp \
PRIVATE_REGISTRY_LOCATION
Arguments
| Argument | Description |
|---|---|
PRIVATE_REGISTRY_LOCATION |
The host name or IP address of the private container registry. |
Options
The apply-icsp command has no options.
Examples
Use a script to create environment variables with the correct values for your environment. For details, see Best practice: Setting up install variables.
- Apply the required image content source policy on your cluster
-
cpd-cli manage apply-icsp \ ${PRIVATE_REGISTRY_LOCATION}