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 also 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 operators in the operators project for the instance. 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.cpd-cli manage apply-olm \ --release=${VERSION} \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --components=${COMPONENTS}Wait for thecpd-clito return the following message before proceeding to the next step:[SUCCESS]... The apply-olm command ran successfully.If the
apply-olmcommand fails, see Troubleshooting the command during installation or upgrade. - Install the operands in the operands project for the instance: 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
Create the custom resources for the specified components.
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true
IBM Fusion Data Foundation storage
Create the custom resources for the specified components.
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true
IBM Fusion Global Data Platform storage
Create the custom resources for the specified components.
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.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true
IBM Storage Scale Container Native storage
Create the custom resources for the specified components.
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.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true
Portworx storage
Create the custom resources for the specified components.
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --storage_vendor=portworx \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --storage_vendor=portworx \ --license_acceptance=true
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-storageCreate the custom resources for the specified components.
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true
AWS EFS storage only
Create the custom resources for the specified components.
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.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true
AWS EFS and EBS storage
Create the custom resources for the specified components.
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true
NetApp Trident
Create the custom resources for the specified components.
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.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true
Nutanix
Create the custom resources for the specified components.
- Installation options defined in the
install-options.ymlfile -
Run the following command if you created an
install-options.ymlfile.By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true \ --param-file=/tmp/work/install-options.yml - No installation options
-
By default, the
apply-crinstalls up to 4 components at the same time. You can adjust this setting by specifying the--parallel_numoption.cpd-cli manage apply-cr \ --release=${VERSION} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --components=${COMPONENTS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --license_acceptance=true
Wait for thecpd-clito return the following message before proceeding to the next step:[SUCCESS]... The apply-cr 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).