Kubecost supports the ability to view cost and health data across multiple Kubernetes clusters and cloud providers. Below are the steps for adding an additional cluster on the Kubecost Business & Enterprise tier.
Add from frontend
Adding a cluster directly from the frontend Kubecot adds it locally for your browser. To make this cluster accessible to other users in your organization, follow the steps to add at install-time below.
Install Kubecost on the additional cluster you would like to view. The recommended Kubecost install path is available at kubecost.com/install.
Expose port 9090 of the
kubecost-cost-analyzerpod. This can be done with a Kubernetes Ingress (example) or LoadBalancer (example). Warning: by default a LoadBalancer exposes endpoints to the wide internet. Be careful about following the authentication requirements of your organization and environment.
Add new clusteron the Kubecost home page and provide the accessible URL (with port included) for the target Kubecost installation. Here’s an example:
Add at install-time
After following Steps #1 and #2 above, provide a list of cluster names/endpoints under
in values.yaml during Helm install or upgrade. Here’s an example values block:
kubecostProductConfigs: clusters: - name: "Cluster A" address: http://cluster-a.kubecost.com:9090