IBM CloudPak for Data: Difference between revisions
Jump to navigation
Jump to search
| Line 7: | Line 7: | ||
# Select '''Copy login command'''. | # Select '''Copy login command'''. | ||
# Authenticate again if prompted. | # Authenticate again if prompted. | ||
# Copy the token from the displayed | # Copy the token from the displayed '''oc login''' command. | ||
Example: | Example: | ||
Revision as of 21:10, 29 July 2026
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