Manually creating projects (namespaces) for the shared cluster components for IBM Software Hub Control Center

The IBM Software Hub command-line interface can automatically create any projects that don't exist on the cluster. However, if you are installing the shared cluster components on different cluster for IBM Software Hub Control Center, you can choose to create the projects for the shared cluster components manually.

Who needs to complete this task?

Cluster administrator You must be a cluster administrator to create projects.

When do you need to complete this task?

This task is optional.

  • Skip this task if either of the following statements are true:
    • You are installing IBM Software Hub Control Center on the same cluster as the instances of IBM Software Hub that you want to monitor.
    • You want to allow the IBM Software Hub command-line interface (cpd-cli) to automatically create the projects for the shared cluster components.
  • One-time setup Complete this task only if both of the following statements are true:
    • You are installing IBM Software Hub Control Center on a different cluster.
    • You do not want to allow the IBM Software Hub command-line interface (cpd-cli) to automatically create the projects for the shared cluster components.

Before you begin

Best practice: You can run the commands in this task exactly as written if you use set up environment variables for IBM Software Hub Control Center. For instructions, see Setting up environment variables for IBM Software Hub Control Center

In addition, ensure that you source the environment variables before you run the commands in this task.

Procedure

To create the required projects:

  1. Log the cpd-cli in to the Red Hat® OpenShift® Container Platform cluster:
    ${CONTROL_CPDM_OC_LOGIN}
    Remember: CONTROL_CPDM_OC_LOGIN is an alias for the cpd-cli manage login-to-ocp command when you are connecting to the Control Center cluster.
  2. Create the project for the License Service:
    oc new-project ${CONTROL_PROJECT_LICENSE_SERVICE}
  3. If you plan to install the scheduling service, create the project for the scheduling service.
    oc new-project ${CONTROL_PROJECT_SCHEDULING_SERVICE}

What to do next

Now that you've created the projects for the shared cluster components, you're ready to complete Installing shared cluster components for IBM Software Hub Control Center.