Deploying License Service

License Service collects and measures the license usage of IBM Cloud Pak® for Integration at the cluster level. You can retrieve this data upon request for monitoring and compliance. You can also retrieve an audit snapshot of the data that is audit evidence. License Service for Cloud Pak for Integration is not deployed automatically.

For more information about License Service, see About License Service in the foundational services documentation.

You can deploy License Service:

Deploying by using the OpenShift web console

To deploy License Service in the UI, first install the operator, then deploy the instance.

Installing the operator by using the OpenShift console

  1. Log in to the OpenShift web console with your OpenShift cluster administrator credentials.

  2. Make sure the Administrator perspective is selected.

  3. Click Operators > OperatorHub.

    Select the Administrator perspective. Then click Operators > OperatorHub
  4. Use the search filter to locate the IBM Licensing operator, and click the tile.

  5. Click Install.

  6. In the Install Operator pane that opens:

    1. Select the latest operator channel.

    2. Keep the pre-selected (default) installation options.

  7. Click Install. The IBM Licensing operator is now installed in the ibm-licensing namespace.

Deploying the instance by using the OpenShift console

  1. Log in to the OpenShift web console with your OpenShift cluster admin credentials.

  2. Click the arrow for Project, and from the list, select the ibm-licensing namespace. If this namespace does not already exist, create a namespace called ibm-licensing by clicking Home > Projects in the navigation pane, then clicking Create Project. Select this namespace when it is created.

  3. In the navigation panel, click Operators > Installed Operators.

  4. In the list on the Installed Operators panel, find and click IBM Licensing.

  5. Click the IBM License Service tab.

  6. Click Create IBMLicensing. The Create IBMLicensing panel opens.

  7. Click Create. You are redirected to the IBM License Service tab. Your instance is added to the list of instances.

Deploying by using the OpenShift CLI

Installing the operator by using the CLI

  1. Log in to your cluster, using your OpenShift user credentials:

    oc login
  2. Use the namespace called ibm-licensing to install the operator. If it does not yet exist, create it:

    oc new-project ibm-licensing
  3. Create a Subscription for the IBM Licensing operator.

    a. Create a Subscription YAML file, for example, subscription.yaml. Use the following configuration:

    apiVersion: operators.coreos.com/v1alpha1
    kind: Subscription
    metadata:
      name: ibm-licensing-operator
    spec:
      channel: v4.2
      name: ibm-licensing-operator-app
      source: opencloud-operators
      sourceNamespace: openshift-marketplace

    b. Run the following command to add the subscription in the ibm-licensing namespace:

    oc apply -f subscription.yaml -n ibm-licensing

    The IBM Licensing operator is now installed in the ibm-licensing namespace. You can now validate License Service.

Installing the instance by using the CLI

  1. Log in to your cluster, using your OpenShift user credentials:

    oc login
  2. Create an IBMLicensing YAML file, for example, ibm-licensing.yaml. Use the following configuration:

    kind: IBMLicensing
    apiVersion: operator.ibm.com/v1alpha1
    metadata:
      labels:
        app.kubernetes.io/instance: ibm-licensing-operator
        app.kubernetes.io/managed-by: ibm-licensing-operator
        app.kubernetes.io/name: ibm-licensing
      name: instance
    spec:
      version: 1.16.6
      apiSecretToken: ibm-licensing-token
      datasource: datacollector
      httpsEnable: true
  3. Apply the YAML file to the cluster:

    oc apply -f ibm-licensing.yaml -n ibm-licensing