IBM CloudPak for Data: Difference between revisions
No edit summary |
No edit summary |
||
| (2 intermediate revisions by the same user not shown) | |||
| Line 6: | Line 6: | ||
<source lang="bash"> | <source lang="bash"> | ||
wget https://github.com/IBM/cpd-cli/releases/download/ | wget https://github.com/IBM/cpd-cli/releases/download/v14.4.0.3/cpd-cli-linux-SE-14.4.0.tgz | ||
wget https://mirror.openshift.com/pub/openshift-v4/clients/oc/4. | wget https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.18/linux/oc.tar.gz | ||
</source> | </source> | ||
| Line 52: | Line 52: | ||
== Configure a Tethered Namespace == | |||
Use the following command to configure a tethered namespace for a Cognos Analytics instance. This allows the CPD instance running in the primary namespace to work with services deployed in the tethered namespace. | |||
<source lang="bash"> | |||
./cpd-cli manage setup-tethered-ns --cpd_instance_ns=ibm-cpd --tethered_instance_ns=cognos-hmg | |||
</source> | |||
In this example: | |||
* '''ibm-cpd''' is the Cloud Pak for Data instance namespace. | |||
* '''cognos-hmg''' is the tethered namespace where Cognos Analytics is deployed. | |||
After the command completes successfully, the required permissions and configuration will be created so that CPD can communicate with the Cognos Analytics deployment. | |||
= Veja também= | = Veja também= | ||
Latest revision as of 21:22, 29 July 2026
Installing the CLI
Before using CPD, set up the required CLI tools on a Linux VM, jump server, or bastion host. This approach is often more reliable than running the tools locally on a Mac with Docker or Podman.
Download the required binaries:
wget https://github.com/IBM/cpd-cli/releases/download/v14.4.0.3/cpd-cli-linux-SE-14.4.0.tgz
wget https://mirror.openshift.com/pub/openshift-v4/clients/oc/4.18/linux/oc.tar.gz
Getting an OpenShift Login Token
You can obtain your OpenShift API token from the OpenShift web console:
- Log in to the OpenShift console.
- Click your username in the upper-right corner.
- Select Copy login command.
- Authenticate again if prompted.
- Copy the token from the displayed oc login command.
Example:
oc login --token=sha256~xxxxxxxxxxxxxxxxxxxxxxxx --server=https://api.cluster.example.com:6443
Logging in to OpenShift with cpd-cli
After starting the container, log in to OpenShift using cpd-cli.
Provide the following command:
./cpd-cli manage login-to-ocp --token=sha256~xxxxxxxxxxxxxxxxxxxxxxxx --server=https://api.cluster.example.com:6443
Create the Global Pull Secret
The global pull secret is required to allow OpenShift to pull images from the IBM container registry using your entitlement key.
Run the following command:
export IBM_ENTITLEMENT_KEY=.....
./cpd-cli manage add-icr-cred-to-global-pull-secret ${IBM_ENTITLEMENT_KEY}
On ROKS, worker nodes may need to be reloaded before the updated pull secret takes effect. To speed up the process, you can temporarily reduce the worker pool to a single node before applying the change.
Configure a Tethered Namespace
Use the following command to configure a tethered namespace for a Cognos Analytics instance. This allows the CPD instance running in the primary namespace to work with services deployed in the tethered namespace.
./cpd-cli manage setup-tethered-ns --cpd_instance_ns=ibm-cpd --tethered_instance_ns=cognos-hmg
In this example:
- ibm-cpd is the Cloud Pak for Data instance namespace.
- cognos-hmg is the tethered namespace where Cognos Analytics is deployed.
After the command completes successfully, the required permissions and configuration will be created so that CPD can communicate with the Cognos Analytics deployment.