Manually creating projects (namespaces) for the shared cluster components for a remote physical location

The IBM Software Hub command-line interface can automatically create any projects that don't exist on the remote cluster where you plan to create a remote physical location. However, 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 you want to allow the IBM Software Hub command-line interface (cpd-cli) to automatically create the projects for the shared cluster components.
  • Complete this task only if 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.

    One-time setup Complete this task one time on each cluster where you plan to create remote physical locations.

Before you begin

Best practice: You can run the commands in this task exactly as written if you use set up environment variables for the remote physical location in addition to the installation environment variables script. For instructions, see Setting up environment variables for a remote physical location.
Before you run the commands in this task, ensure that you source the environment variables for:
  • The primary cluster
  • The remote physical location

Procedure

To create the required projects:

  1. Log in to Red Hat® OpenShift® Container Platform as a user with sufficient permissions to complete the task.
    ${REMOTE_OC_LOGIN}
    Remember: REMOTE_OC_LOGIN is an alias for the oc login command when you are connecting to a remote cluster.
  2. If you don't have a certificate manager, such as the Red Hat OpenShift cert-manager, create the project for the Certificate manager:
    oc new-project ${REMOTE_PROJECT_CERT_MANAGER}
  3. Create the project for the License Service:
    oc new-project ${REMOTE_PROJECT_LICENSE_SERVICE}
  4. Create the project for the scheduling service:
    oc new-project ${REMOTE_PROJECT_SCHEDULING_SERVICE}

What to do next

Now that you've created the projects for the shared cluster components on the remote cluster, you're ready to complete Installing the shared cluster components for a remote physical location.