Change the Cost Management Metrics Operator resource allocation

The Cost Management Metrics Operator includes a default CPU and memory resource allocation. If the default resource allocation does not meet your needs, you can increase the resources that are available to the operator.

Before you begin

  • The Cost Management Metrics Operator is installed.
  • You are logged in to the OpenShift Container Platform web console with cluster administrator privileges.

The Cost Management Metrics Operator has the following default resource allocation:

Limits:

  • CPU: 500m
  • memory: 500Mi

Requests:

  • CPU: 100m
  • memory: 20Mi

Procedure

  1. Log in to the OpenShift Container Platform web console.
  2. From Installed Operators, click Cost Management Metrics Operator.
  3. Click the Subscription tab and then click the Actions menue and select Edit Subscription.
  4. In the YAML file that appears, edit the deployment resources with values that meet the CPU and memory needs of your cluster:
    kind: Subscription
    metadata:
    ...
    spec:
      ...
      config:
        resources:
          limits:
            cpu: 500m
            memory: 500Mi
          requests:
            cpu: 200m
            memory: 100Mi

Results

  • Navigate to Workloads > Deployments in the OpenShift Container Platform web console.
  • Locate the Cost Management Metrics Operator deployment and verify that it shows the new CPU and memory resource values you configured.