Defining containers for licensing

By default, License Service treats all containers as charged. However, you can have application containers that should be charged along with utility containers that are running as sidecars (such as monitoring agents or proxies) that should not be charged. Update the productChargedContainers annotation to determine which containers within a pod should be charged for licensing.

About this task

For information about the values that can be used in the productChargedContainers annotation, see Values of the productChargedContainers annotation.

Procedure

  1. Log in to your OpenShift console.
  2. Go to Operators > Installed Operators.
  3. From the Project drop-down list, select All Projects.
  4. Select the IBM Licensing operator.
  5. Open the IBM License Service tab. The instance of License Service custom resource is listed. Select the instance.
  6. Open the YAML tab, and add the following lines to the metadata section.
    metadata:
      annotations:
        productChargedContainers: container_definition
    Where container_definition is your definition of which containers should be charged for licensing.