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.
To learn more about License Service, see IBM License Service. For more information about Cloud Pak for Integration licensing, see Licensing.
You can deploy License Service:
Both methods are provided, including procedures for deploying using the OpenShift web console or using the OpenShift CLI for each method.
Once you have deployed License Service, you can validate it.
Deploying License Service with the Platform UI
You can deploy License Service by editing the YAML file for the PlatformNavigator
custom resource.
Prerequisite: If you have not already deployed the Platform UI, follow the procedures in Deploying the Platform UI by using the OpenShift console or Deploying the Platform UI by using the CLI (up to, but not including, "Logging in to the Platform UI").
Deploying License Service using the OpenShift web console
Log into the OpenShift web console with your OpenShift credentials.
Change Project to the desired project (namespace) name. Click the drop-down arrow and select your project name from the list. This is the
metadata.namespace
(value ofintegration
) in the YAML example in step 7.In the navigation panel, click Operators > Installed Operators.
In the list on the Installed Operators panel, find and click IBM Cloud Pak for Integration.
Click the Platform UI tab. If there is not already a created instance, follow the procedure for "Creating the Platform UI instance" in Deploying the Platform UI by using the CLI.
Click the instance in the list and click YAML. The YAML view opens an editor.
In the editor, enter
spec.requestIbmServices.licensing
with valuetrue
, as in the following example YAML file. Change the value ofmetadata.namespace
to the desired namespace (project) as needed.kind: PlatformNavigator metadata: name: integration-quickstart namespace: integration spec: license: accept: false mqDashboard: true replicas: 3 version: 2021.1.1 requestIbmServices: licensing: true
The License Service is now deployed in the
ibm-common-services
namespace.
Deploying the license service using the OpenShift CLI
You can deploy License Service by editing the pre-existing YAML file for the PlatformNavigator
resource.
Log in to the OpenShift CLI.
Change the project to the desired project/namespace:
oc project <namespace>
Generate a list of instances in this namespace that includes the name of the
PlatformNavigator
resource:oc get pn
If no instances are returned, follow the procedure for "Creating the Platform UI instance" in Deploying the Platform UI by using the CLI.
Edit the resource by running this command, placing
<name>
with the name of your instance:oc edit pn <name>
In the YAML, at the end of the
spec
section, addspec.requestIbmServices.licensing
with valuetrue
as in the following YAML example.kind: PlatformNavigator metadata: name: integration-quickstart namespace: integration spec: license: accept: false mqDashboard: true replicas: 3 version: 2021.1.1 requestIbmServices: licensing: true
Save and apply your changes in the editor.
The License Service will now be deployed in the
ibm-common-services
namespace.
Deploying License Service without a PlatformNavigator
resource
You can deploy License Service directly, without a PlatformNavigator
resource.
Deploying using the OpenShift web console
Log into the OpenShift web consolewith your OpenShift credentials.
In the top banner, click the plus + icon to open the Import YAML dialog box.
Paste this resource definition into the dialog box and change the
namespace
to the desired project/namespace. It can be any namespace with integration workloads, or theibm-common-services
namespace:apiVersion: operator.ibm.com/v1alpha1 kind: OperandRequest metadata: name: licensing-request namespace: integration spec: requests: - operands: - name: ibm-licensing-operator registry: common-service registryNamespace: ibm-common-services
Click Create.
The License Service will now be deployed in the
ibm-common-services
namespace.
Deploying using the OpenShift CLI
Save this text to a file called
licensing-request.yaml
, replacing<namespace>
with your desired namespace.apiVersion: operator.ibm.com/v1alpha1 kind: OperandRequest metadata: name: licensing-request namespace: integration spec: requests: - operands: - name: ibm-licensing-operator registry: common-service registryNamespace: ibm-common-services
Run this command; use your project name as the value for
<namespace>
:oc apply -f licensing-request.yaml -n <namespace>
The License Service will now be deployed in the
ibm-common-services
namespace.
Validating License Service
One you have deployed License Service, you can validate it. See Verifying completeness of license usage data for more information.