Running a batch installation of solutions and services
Run a batch installation to install multiple services at the same time, which enables you to complete your installation in fewer steps. Batch installations support parallel installation of some components, which reduces installation time.
However, if you want more granular control over the installation process, you can install services one at a time. See the instructions for installing each service individually in Services.
- 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?
-
Instance administrator An instance administrator can complete this task.
- When do you need to complete this task?
-
Repeat as needed Repeat this task for each instance of IBM Software Hub on your cluster.
Before you begin
Ensure that you source the environment variables before you run the commands in this task.
About this task
Procedure
To run a batch installation of services:
-
Log the
cpd-cliin to the Red Hat® OpenShift® Container Platform cluster:${CPDM_OC_LOGIN}Remember:CPDM_OC_LOGINis an alias for thecpd-cli manage login-to-ocpcommand. - Install the services: Tip: Before you run this command against your cluster, you can preview the
occommands that this command will issue on your behalf by running the command with the--preview=trueoption.The
occommands are saved to thepreview.shfile in theworkdirectory.The command that you run depends on the storage on your cluster:
Red Hat OpenShift Data Foundation storage
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
IBM Fusion Data Foundation storage
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
IBM Fusion Global Data Platform storage
When you use IBM Fusion storage, both
${STG_CLASS_BLOCK}and${STG_CLASS_FILE}point to the same storage class, typicallyibm-spectrum-scale-scoribm-storage-fusion-cp-sc.- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
IBM Storage Scale Container Native storage
When you use IBM Storage Scale Container Native storage, both
${STG_CLASS_BLOCK}and${STG_CLASS_FILE}point to the same storage class, typically.ibm-spectrum-scale-sc- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
Portworx storage
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --storage_vendor=portworx \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --storage_vendor=portworx \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
NFS storage
When you use IBM Storage Scale Container Native storage, both
${STG_CLASS_BLOCK}and${STG_CLASS_FILE}point to the same storage class, typically.managed-nfs-storage- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
AWS EFS storage only
When you use only EFS storage, both
${STG_CLASS_BLOCK}and${STG_CLASS_FILE}point to the same storage class, typically.efs-nfs-client- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
AWS EFS and EBS storage
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
NetApp Trident
When you use NetApp Trident storage, both
${STG_CLASS_BLOCK}and${STG_CLASS_FILE}point to the same storage class, typically.ontap-nas- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
Nutanix
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET} \ --param-file=/tmp/work/install-options.yml - No installation options
-
cpd-cli manage install-components \ --license_acceptance=true \ --components=${COMPONENTS} \ --release=${VERSION} \ --patch_id=${PATCH_ID} \ --operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --image_pull_prefix=${IMAGE_PULL_PREFIX} \ --image_pull_secret=${IMAGE_PULL_SECRET}
Wait for thecpd-clito return the following message before proceeding to the next step:[SUCCESS]... The install-components command ran successfully. - Installation options defined in the
What to do next
Now that you've installed the services that support your business needs, you're ready to complete the Post-installation setup (Day 1 operations).