To get started with Kubecost and OpenCost, the recommended path is to install Kubecost Commmunity Version. This installation method is available for free and leverages the Kubecost Helm Chart. It provides access to all OpenCost and Kubecost community functionality and can scale to large clusters. This will also provide a token for trialing and retaining data across different Kubecost product tiers.
Alternative installation methods
- You can also install directly with the Kubecost Helm Chart with Helm 3 using the following commands. This provides the same functionality as the step above but doesn’t generate a product token for managing tiers or upgrade trials.
helm repo add kubecost https://kubecost.github.io/cost-analyzer/ helm upgrade --install kubecost kubecost/cost-analyzer --namespace kubecost --create-namespace
You can run Helm Template against the Kubecost Helm Chart to generate local YAML output. This requires extra effort when compared to directly installing the Helm Chart but is more flexible than deploying static YAML.
You can install via flat manifest. This install path provides less flexibility for managing your deployment and has several product limitations, e.g. Thanos is not easily enabled.
Lastly, you can deploy the open source project directly as a Pod. This install path provides a subset of free functionality and is available here. Specifically, this install path deploys the underlying cost allocation model without the same UI or access to enterprise functionality, e.g. SAML support.
Edit this doc on GitHub