Enabling resource specification injection for an instance of Cloud Pak for Data

If you want to use the resource specification injection (RSI) feature to customize the specifications of pods that are associated with an instance of Cloud Pak for Data, you must enable the RSI webhook to inject RSI patches into pods in the project where Cloud Pak for Data is installed.

Who needs to complete this task?
A cluster administrator or project administrator must complete this task.
When do you need to complete this task?
Complete this task only if you want to use the RSI feature to customize the specifications of pods.
Important: Enable RSI only if you are an advanced user on Red Hat® OpenShift® Container Platform. It is your responsibility to ensure that any patches that you apply to not introduce issues to your Cloud Pak for Data installation.

Before you begin

You must complete Installing or updating the resource specification injection webhook on the cluster before you can enable RSI for an instance of Cloud Pak for Data.

Best practice: You can run the commands in this task exactly as written if you set up environment variables. For instructions, see Setting up installation environment variables.

Ensure that you source the environment variables before you run the commands in this task.

About this task

Use the cpd-cli manage enable-rsi command to enable the RSI webhook to inject patches into the project where Cloud Pak for Data is installed and into any projects that are tethered to that project.

If you have multiple instances of Cloud Pak for Data on your cluster, you must run this command for each instance of Cloud Pak for Data where you want to apply RSI patches.

Procedure

To enable the RSI webhook to apply patches to an instance of Cloud Pak for Data:

  1. 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. To enable RSI on an instance of Cloud Pak for Data:
    cpd-cli manage enable-rsi \
    --cpd_instance_ns=${PROJECT_CPD_INSTANCE}

What to do next

You can now customize pod specifications by creating and applying RSI patches, you must enable the RSI feature in the project where Cloud Pak for Data is installed. For details, see Customizing pods by creating a resource specification injection patch.