manage
setup-tethered-ns
Prerequisites
Complete the following tasks for the projects that you plan to tether to the IBM® Software Hub control plane:
- Apply the required
permissions to the projects (namespaces for an instance of IBM Software
Hub.
- If you run the
authorize-instance-topologycommand, specify the project that you want to tether in the--additional_nsoption. - If you run the
show-minimum-rbaccommand, apply the role and role binding to the project that you want to tether.
This task ensures that the project where the operators are installed can watch the tethered projects.
- If you run the
- Creating image pull secrets for
an instance of IBM Software
Hub.
Ensure that you create the pull secret in the project that you want to tether. This task ensures that any software that is deployed in the project can pull the required images.
- Installing the required components
for an instance of IBM Software
Hub.
When you run the
install-componentscommand, specify the project that you want to tether in the--tethered_instance_nsoption.This task ensures that the tethered projects are added to the
NamespaceScopeoperatorConfigMap, which tells the operators to manage the operands in the tethered projects.
Extended description
A tethered project (namespace) is a project that is associated or linked with the project where the IBM Software Hub 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.cpd-cli manage setup-tethered-ns command:- Updates the
IBM NamespaceScope Operatorin the operators project to enable the operators to watch the tethered project. - Updates the
ZenServicecustom resource in the operands project to add the tethered project to thetetheredNamespacesentry.This enables the IBM Software Hub control plane to monitor and manage the workloads in the tethered project.
The software or workload in the tethered project is managed by IBM Software Hub control plane but is otherwise isolated from the control plane and the other services and workloads that are running in the main IBM Software Hub 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-name> \
[--remove=true|false]
[--preview=true|false] \
[-v][-vv][-vvv]
Arguments
The setup-tethered-ns command has no arguments.
Options
| Option | Description |
|---|---|
--cpd_instance_ns |
The project (namespace) where IBM Software Hub 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 Software Hub 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
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.
- Tether a project to the specified project
-
cpd-cli manage setup-tethered-ns \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --tethered_instance_ns=${PROJECT_CPD_INSTANCE_TETHERED} - Preview the
occommands to tether a project to the specified project -
cpd-cli manage setup-tethered-ns \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --tethered_instance_ns=${PROJECT_CPD_INSTANCE_TETHERED} \ --preview=true - Untether a project from the specified project
-
cpd-cli manage setup-tethered-ns \ --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \ --tethered_instance_ns=${PROJECT_CPD_INSTANCE_TETHERED} \ --remove=true