Often while using and configuring Kubecost, our documentation may ask you to pass certain Helm flag values. There are three different approaches for passing custom Helm values into your Kubecost product, which are explained in this doc. In these examples, we are updating the kubecostProductConfigs.productKey.key
Helm value which enables Kubecost Enterprise, however these methods will work for all other Helm flags.
--set
command-line flagsFor example, you can only pass a product key if that is all you need to configure.
values
fileSimilar to Method 1, you can create a separate values file that contains only the parameters needed.
Your values.yaml should look like this:
Then run your install command:
This file contains the default Helm values that come with your Kubecost install. Taking this approach means you may need to sync with the repo to use the latest release. Be careful when applying certain Helm values related to your UI configuration to your secondary clusters. For more information, see this section in our Multi-Cluster doc about primary and secondary clusters.