Install the cost management operator with the OpenShift web console
Install the Cost Management Metrics Operator from the OpenShift Container Platform web console so you can import OpenShift usage data into cost management.
Before you begin Copy linkLink copied!
- You have an OpenShift Container Platform cluster.
- You are logged in to the OpenShift Container Platform web console with an account that has cluster administrator privileges.
- You can access the Red Hat Hybrid Cloud Console with an account that has access to the cost management service. See Limit access to cost management resources for more information.
Procedure Copy linkLink copied!
Results Copy linkLink copied!
- From the OpenShift Container Platform web console, navigate to Operators > Installed Operators.
- Verify that Cost Management Metrics Operator appears in the list with status Succeeded.
- If you set
create_sourcetotrue, verify that the integration appears in Red Hat Hybrid Cloud Console under Settings > Integrations > Red Hat.
What to do next Copy linkLink copied!
- If you did not use token authentication, follow the steps in Configure service account authentication for the cost management metrics operator.
- If a proxy has a custom certificate authority (CA) certificate, you must create additional configurations to inject this certificate into the Cost Management Metrics Operator. For more details, see Injecting a custom CA certificate in the OpenShift Container Platform documentation.
Configure service account authentication for the cost management metrics operator Copy linkLink copied!
If you manually configured the cost management metrics operator to use basic authentication, you must configure service account authentication. Basic authentication is no longer supported.
Before you begin Copy linkLink copied!
- You are logged into the OpenShift Container Platform web console and have cluster administrator privileges.
- The Cost Management Metrics Operator is in the Installed Operators tab.
Procedure Copy linkLink copied!
-
Create a service account and get your client ID and client secret:
-
Associate the new service account with a group:
-
Create the secret key/value pair for service account authentication:
-
Modify the YAML file:
Results Copy linkLink copied!
- Navigate to Operators > Installed Operators > Cost Management Metrics Operator.
- Click the CostManagementMetricsConfig tab and select your configuration.
- Click YAML and verify that
authenticationshowstype: service-accountand your secret name.
Settings.