manage
setup-instance-topology
Prepare the projects where you plan to run IBM Software Hub.
Deprecated This command is
deprecated in 5.1.0. Use the setup-instance command instead.
- Required role
- Instance administrator To run this command, you
must be either:
- An administrator of the IBM® Software Hub instance.
- A cluster administrator.
Extended description
authorize-instance-topology command before you can run this
command.- You are installing new instance of IBM Software Hub.
- You want to add another tethered project to an existing instance of IBM Software Hub.
setup-instance-topology prepares the projects
where you plan to install or upgrade IBM Software
Hub
by completing the following tasks:- Installing or upgrade the required IBM Cloud Pak foundational services software in the specified operators project.
- Creating or updating the
ConfigMapfor theNamespaceScopeoperator. (TheConfigMap) identifies the project or projects that the operators should watch.)
Run this command for each instance of IBM Software Hub that you plan to install or upgrade.
Syntax
cpd-cli manage setup-instance-topology \
--release=<version> \
--cpd_operator_ns=<project-name> \
--cpd_instance_ns=<project-name> \
--license_acceptance=true|false \
[--block_storage_class=<RWO-storage-class>] \
[--additional_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>] \
[--preview=true|false] \
[--print_rbac=true|false] \
[-v][-vv][-vvv]
Arguments
The setup-instance-topology command has no arguments.
Options
| Option | Description |
|---|---|
--additional_ns |
A
list of projects that you plan to tether to the IBM Software Hub control plane
project. If Restriction: Only some services
can deploy workloads or service instances to tethered projects. To determine whether the services
that you plan to install can use tethered projects, see Multitenancy support.
|
--block_storage_class |
The name of a
block storage class on the cluster. The storage class must be associated with a supported storage
option.
|
--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
specified components. You must create the catalog source objects for the IBM Cloud Pak foundational services. However, you can create the catalog source objects separately from the subscriptions.
|
--cpd_instance_ns |
The project for the IBM Software Hub control plane and
services.
|
--cpd_operator_ns |
The project for the operators for an instance of IBM Software
Hub.
|
--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.
|
--preview |
Preview the commands that run when you issue this CLI
command. The command issues a series of
The
|
--print_rbac |
Print out the role-based access control (RBAC) requirements for the
command.
|
--release |
The release that you want to
install.
|
--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
|
--sub |
Specify whether to create the operator subscriptions for the
specified components. You must create the operator subscriptions for the IBM Cloud Pak foundational services. However, you can create the subscriptions separately from the catalog source objects.
|
-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.
- Prepare the projects where you plan to install IBM Software Hub
-
cpd-cli manage setup-instance-topology \ --release=${VERSION} \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --additional_ns=${PROJECT_CPD_INSTANCE_TETHERED_LIST} \ --license_acceptance=true - Preview the
occommands to prepare the projects where you plan to install IBM Software Hub -
cpd-cli manage setup-instance-topology \ --release=${VERSION} \ --cpd_operator_ns=${PROJECT_CPD_INST_OPERATORS} \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --additional_ns=${PROJECT_CPD_INSTANCE_TETHERED_LIST} \ --license_acceptance=true \ --preview=true