IBM CloudPak for Data: Difference between revisions

From Wiki
Jump to navigation Jump to search
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== 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:
<source lang="bash">
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
</source>
== Getting an OpenShift Login Token ==
== Getting an OpenShift Login Token ==


Line 7: Line 19:
# Select '''Copy login command'''.
# Select '''Copy login command'''.
# Authenticate again if prompted.
# Authenticate again if prompted.
# Copy the token from the displayed <code>oc login</code> command.
# Copy the token from the displayed '''oc login''' command.


Example:
Example:
Line 24: Line 36:
./cpd-cli manage login-to-ocp --token=sha256~xxxxxxxxxxxxxxxxxxxxxxxx --server=https://api.cluster.example.com:6443
./cpd-cli manage login-to-ocp --token=sha256~xxxxxxxxxxxxxxxxxxxxxxxx --server=https://api.cluster.example.com:6443
</syntaxhighlight>
</syntaxhighlight>
== 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:
<source lang="bash">
export IBM_ENTITLEMENT_KEY=.....
./cpd-cli manage add-icr-cred-to-global-pull-secret ${IBM_ENTITLEMENT_KEY}
</source>
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.
<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:

  1. Log in to the OpenShift console.
  2. Click your username in the upper-right corner.
  3. Select Copy login command.
  4. Authenticate again if prompted.
  5. 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.

Veja também