To meter the product consumption data of Tanzu Kubernetes Grid in vCloud Usage Meter, you must add the Tanzu Kubernetes Grid management cluster for metering.
Prerequisites
- Verify that the vCenter Server instance associated with the Tanzu Kubernetes Grid management cluster is part of the vCloud Usage Meter list of vCenter Server instances.
- Obtain a bearer token by setting up a service account metering user with Tanzu Kubernetes Grid. For information, see Obtain a Bearer Token for a Tanzu Kubernetes Grid Management Cluster.
Procedure
Results
Obtain a Bearer Token for a Tanzu Kubernetes Grid Management Cluster
To add a Tanzu Kubernetes Grid management cluster for metering, you must obtain a bearer token.
To obtain a bearer token for a Tanzu Kubernetes Grid management cluster, you must set up a service metering user with a cluster role. You must create two separate YAML files for the user and the cluster role.
Prerequisites
Obtain the credentials of the Tanzu Kubernetes Grid management cluster. For information, see Retrieve Tanzu Kubernetes Cluster kubeconfig
in VMware Tanzu Kubernetes Grid 1.5 Documentation.