To get started with OpenCost and Kubecost, the recommended path is to install Kubecost community version. This install method is available for free and leverages the Kubecost helm chart. It provides access to all OpenCost and Community Kubecost functionality and can scale to large clusters. This will also provide a token for trialing and retaining data across different Kubecost product tiers.
- 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