manage
setup-instance
Prepare the projects where you plan to install IBM Software Hub.
- Required role
- Instance administrator You must be an administrator of the projects that are associated with an instance to run this command.
Before you begin
A cluster administrator must run the authorize-instance-topology command before you
run the setup-instance command.
Extended description
Run this command for each instance of IBM® Software Hub that you plan to install or upgrade.
The setup-instance command installs or upgrades the
required operators and custom resources for an instance of IBM Software
Hub.
Syntax
cpd-cli manage setup-instance \
--release=<version> \
--license_acceptance=true|false \
--cpd_operator_ns=<project-name> \
--cpd_instance_ns=<project-name> \
--block_storage_class=<RWO-storage-class> \
[--file_storage_class=<RWX-storage-class>] \
[--storage_vendor=portworx] \
[--tethered_ns=<comma-separated-list-of-project-names>] \
[--case_download=true|false] \
[--from_oci=true|false] \
[--oci_location=<registry-URL>] \
[--catsrc=true|false] \
[--sub=true|false] \
[--skip_components=<comma-separated-list-of-component-names>] \
[--param-file=<file-name>] \
[--preview=true|false] \
[-vv][-vv][-vvv]
Arguments
The setup-instance command has no arguments.
Options
| Option | Description |
|---|---|
--block_storage_class |
Specify the name of an existing storage class that supports
ReadWriteOnce (RWO) access.
|
--case_download |
Specify whether to download the CASE packages for the specified
components if they are not detected in the work directory. Important: The command
will fail if the CASE packages are not
in the
work directory.
|
--catsrc |
Specify whether to create the catalog source objects for the required
operators. You must create the catalog source objects for the required operators. However, you can create the catalog source objects separately from the subscriptions.
|
--cpd_instance_ns |
The project (namespace) where you want to install an instance of IBM
Software Hub.
|
--cpd_operator_ns |
The project where you want to install the operators for this instance
of IBM Software Hub.
|
--file_storage_class |
Specify the name of an existing storage class that supports
ReadWriteMany (RWX) access.
|
--from_oci |
Download CASE packages from the IBM Cloud Pak® Open Container Initiative (OCI) registry rather than from
GitHub. This option is recommended for environments that are not allowed to access GitHub (github.com). Restriction: This setting applies only if you
set
--case_download=true.
|
--license_acceptance |
Specify whether you accept the license terms. You must set this
option to true to install the software.
|
--oci_location |
The URL of the Open Container Initiative (OCI) registry from which
you want to download CASE packages. For example, specify this
option if you want to download the CASE
packages from a private OCI registry. Restriction: This setting applies only if you set
--from_oci=true.
|
--param-file |
The name of a YAML file that includes additional
parameters. The file must be in the
|
--preview |
Preview the commands that run when you issue this CLI
command. The command issues a series of
The
|
--release |
The release that you want to install or upgrade
to.
|
--run_storage_tests |
Specify whether to validate the performance and functionality of your
storage.
|
--skip_components |
A
comma-separated list of component IDs that are already have cluster-scoped
operators. If you have a cluster-scoped
operator for a component, use this option to prevent the
|
--storage_vendor |
The type of storage that you are using. This setting uses the
recommended storage class when provisioning storage during
installation.
|
--sub |
Specify whether to create the operator subscriptions for the required
operators. You must create the operator subscriptions for the required operators. However, you can create the subscriptions separately from the catalog source objects.
|
--tethered_ns |
A
list of projects that you plan to tether to the operands project for this instance of IBM Software
Hub.
|
-v-vv-vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
Examples
It is strongly recommended that you use a script to create environment variables with the correct values for your environment. For details, see Setting up installation environment variables.
${CMD_PREFIX} setup-instance ]
--cpd_instance_ns=cpd-instance-1 --tethered_ns=cpd-instance-1-tether-1,cpd-instance-1-tether-2 \
--block_storage_class=rwo-custom-class
# Preview the commands to install the required operators and custom resources
# for an instance of IBM Software Hub.
${CMD_PREFIX} setup-instance --license_acceptance=true \
--release=5.1.0 --cpd_operator_ns=cpd-operator-1 \
--cpd_instance_ns=cpd-instance-1 \
--block_storage_class=rwo-custom-class \
--preview=true
- Install the required operators and custom resources for an instance of IBM Software Hub
-
cpd-cli manage setup-instance \ --release=${VERSION} \ --license_acceptance=true \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} - Run the recommended storage tests and then install the required operators and custom resources for an instance of IBM Software Hub
-
cpd-cli manage setup-instance \ --release=${VERSION} \ --license_acceptance=true \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --file_storage_class=${STG_CLASS_FILE} \ --run_storage_tests=true - Preview the
occommands to install the required operators and custom resources for an instance of IBM Software Hub -
cpd-cli manage setup-instance \ --release=${VERSION} \ --license_acceptance=true \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --block_storage_class=${STG_CLASS_BLOCK} \ --preview=true