k8s-opencost installs OpenCost, a vendor-neutral open source project for measuring and allocating infrastructure and container costs in Kubernetes environments. OpenCost provides the cost allocation engine used by Kubecost, a commerical product.
This Helm chart captures the OpenCost installation steps documented here in code.
$ git clone git@github.com:infrable-io/k8s-opencost.git
$ cd k8s-opencost
$ kubectl create namespace opencost
$ helm install opencost . --namespace opencost
To test the Helm chart, run the following:
$ helm test opencost --namespace opencost
Helm charts store their dependencies in charts/
. For chart developers, it is often easier to manage dependencies in Chart.yaml
, which declares all dependencies.
The dependency
commands (build
, list
, update
) operate on that file, making it easy to synchronize between the desired dependencies and the actual dependencies stored in the charts/
directory.
For example, this Chart.yaml
declares a single dependency:
- prometheus
dependencies:
- name: prometheus
version: "15.14.0"
repository: https://prometheus-community.github.io/helm-charts
condition: prometheus.enabled