Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 2. Integrating OpenShift Serverless with the cost management service
You can integrate Serverless with the cost management service in OpenShift Container Platform to track and analyze costs for cloud and container workloads. The service uses the open source Koku project to offer cost visibility and insights.
2.1. Prerequisites for integrating OpenShift Serverless with the cost management service Link kopierenLink in die Zwischenablage kopiert!
You can review the required permissions and ensure that cost management is configured with an OpenShift Container Platform source before you proceed.
- You have cluster administrator permissions.
- You have set up cost management and added an on OpenShift Container Platform source.
2.2. Labels for cost management queries Link kopierenLink in die Zwischenablage kopiert!
You can apply labels, also known as tags in cost management, to nodes, namespaces, or pods. Each label consists of a key-value pair. Use combinations of labels to generate reports. You can access reports about costs by using the Red Hat hybrid console.
Nodes pass labels to namespaces, and namespaces pass them to pods. However, labels are not overridden if they already exist on a resource. For example, Knative services have a default app=<revision_name> label:
You get an output similar to the following example:
apiVersion: serving.knative.dev/v1
kind: Service
metadata:
name: showcase
spec:
...
labels:
app: <revision_name>
...
If you define a namespace label such as app=my-domain, the cost management service excludes costs from a Knative service with the tag app=<revision_name> when you query by using the app=my-domain tag. Query those costs by using the app=<revision_name> tag.