Deploy Kubecost Plugin
Kubecost is an open-source tool for managing and controlling the costs of a Kubernetes cluster. It helps organizations understand the costs of their Kubernetes workloads, enabling better budgeting, resource optimization, efficient resource usage, and reduced spending.
Notes
If the VictoriaMetrics plugin has been deployed or uninstalled before deploying the Kubecost plugin, it may result in inaccurate data in cost management.
Prerequisites
-
Deployment and usage of the Kubecost plugin depend on the Prometheus plugin. Please first deploy the Prometheus plugin .
-
Before deploying the Kubecost plugin, please create a storage class as needed. Create a storage class .
Procedures
-
In the left navigation bar, click Clusters > Clusters.
-
In the list of clusters, click the cluster name for which you want to deploy the Kubecost plugin.
-
On the Plugins tab, click
on the right side of Kubecost > Deploy. -
Configure the relevant parameters as follows:
Parameter Description Kubecost Secret Name Kubecost needs to access the Kubernetes cluster to obtain cost and resource usage data. For secure authentication, you need to create or select a Secret containing the authentication information required to access Kubecost to ensure secure access. Storage Class Select an appropriate storage class for storing data in Kubecost. Kubecost requires storage for cost analysis, resource usage, and other data. The storage class defines how this data is stored in the Kubernetes cluster. Storage Size Kubecost stores a large amount of data. Therefore, based on the cluster size and data storage requirements, select an appropriate storage size that is large enough to accommodate all the data (in Gi, e.g., 8 Gi). -
Click Deploy.