Modifying the default watsonx.data.data route

The default watsonx.data route is a reencrypt route that is named cpd.

watsonx.data on Red Hat® OpenShift®

About this task

You can modify the route by:

  • Changing the hostname of the default route.
  • Changing the default route from a reencrypt route to a passthrough route.
What permissions do you need to complete this task?
To complete this task, you must have one of the following roles:
  • Cluster administrator
  • Instance administrator
When do you need to complete this task?
This task is optional, but recommended. Complete this task before you give users access to the watsonx.data platform.

If you have multiple installations of watsonx.data on your OCP cluster, complete this task for each installations.

Before you begin

The workstation from which you run the commands must be set up as a client workstation with the following command-line interfaces:

  • watsonx.data CLI: cpd-cli
  • Red Hat OpenShift CLI: oc

Procedure

  1. About this task

    This task covers how to change the hostname of the route. If you want to change the route from a passthrough route to a reencrypt route, see Using a custom TLS certificate for HTTPS connections to the platform

    Procedure

    Run the cpd-cli manage login-to-ocp command to log in to the cluster as a user with sufficient permissions to complete this task. For example,:

    cpd-cli manage login-to-ocp \
    --username=${OCP_USERNAME} \
    --password=${OCP_PASSWORD} \
    --server=${OCP_URL}

    Tip: The login-to-ocp command takes the same input as the oc login command. Run oc login --help for details.

  2. Run the cpd-cli manage setup-route command.

    The command that you run depends on whether you want to change the hostname of the default route or whether you want to change the route type.

    1. Changing the hostname of the route.

      Replace the following variables before you run the command:

      <hostname>
      The hostname to use in the route.
      cpd-cli manage setup-route \
      --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
      --custom_hostname=<hostname>
    2. Changing the type of the route
      cpd-cli manage setup-route \
      --cpd_instance_ns=${PROJECT_CPD_INST_OPERANDS} \
      --route_type=passthrough