manage
setup-tethered-ns
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.
Tether a project (namespace) to the project where the IBM Cloud Pak for Data control plane is installed.
Extended description
A tethered project (namespace) is a project that is associated or linked with the project where the Cloud Pak for Data control plane is installed. You can deploy a service instance or workload to a tethered project.
setup-tethered-ns
command before you can create a service instance or deploy a workload in a tethered project.${PROJECT_CPD_INSTANCE} project, the cpd-cli
manage
setup-tethered-ns command:- Updates the appropriate instances of the
IBM NamespaceScope Operatorto enable the operators to watch the tethered project. - Updates the
ZenServicecustom resource in the${PROJECT_CPD_INSTANCE}project to add the${PROJECT_TETHERED}project to thetetheredNamespacesentry.This enables the Cloud Pak for Data control plane to monitor and manage the workloads in the tethered project.
The software or workload in the tethered project is managed by Cloud Pak for Data control plane but is otherwise isolated from the control plane and the other services and workloads that are running in the main Cloud Pak for Data project. For more information, see Supported project (namespace) configurations.
Syntax
cpd-cli manage setup-tethered-ns \
--cpd_instance_ns=<project-name> \
--tethered_instance_ns=${PROJECT_CPD_INSTANCE} \
[--remove=true|false]
[--preview=true|false] \
[-v][-vv][-vvv]
Arguments
The setup-instance-ns command has no arguments.
Options
| Option | Description |
|---|---|
--cpd_instance_ns |
The
project (namespace) where IBM Cloud Pak for Data is
installed.
|
--preview |
Preview the commands that run when you issue this CLI
command. The command issues a series of
The
|
--remove |
Specify whether to tether or untether the project from the project
where the IBM Cloud Pak for Data control plane is
installed.
|
--tethered_instance_ns |
This option can be used to specify either:
|
-v-vv-vvv |
Display verbose output. Options are listed from least verbose to the most verbose.
|
Examples
Use a script to create environment variables with the correct values for your environment. For details, see Best practice: Setting up install variables.
- Tether a project to the specified project
-
cpd-cli manage setup-tethered-ns \ --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \ --tethered_instance_ns=${PROJECT_TETHERED} - Preview the
occommands to tether a project to the specified project -
cpd-cli manage setup-tethered-ns \ --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \ --tethered_instance_ns=${PROJECT_TETHERED} \ --preview=true - Untether a project from the specified project
-
cpd-cli manage setup-tethered-ns \ --cpd_instance_ns=${PROJECT_CPD_INSTANCE} \ --tethered_instance_ns=${PROJECT_TETHERED} \ --remove=true