You can apply your product key at any time within the product UI or during an install or upgrade process. More details on both options are provided below.
Many Kubecost product configuration options can be specified at install-time, including your product key.
To create a secret you will need to create a JSON file called productkey.json with the following format. Be sure to replace
<YOUR_PRODUCT_KEY>with your Kubecost product key.
Run the following command to create the secret. Replace
<SECRET_NAME>with a name for the secret (example:
$ kubectl create secret generic <SECRET_NAME> -n kubecost --from-file=./productkey.json
kubecostProductConfigs.productKey.enabled = true
kubecostProductConfigs.productKey.secretname = <SECRET_NAME>
helm upgradeto start using your product key.
Note: you must also set the
truewhen using this option. That this will leave your secrets unencrypted in values.yaml. Use a Kubernetes secret as in the previous method to avoid this.
To apply your license key within the Kubecost UI, visit the Overview page and then select Upgrade in the page header.
Next, select Add Key in the dialog menu shown below.
You can then supply your Kubecost provided license key in the input box that is now visible.
Add key dialog
To verify that your key is properly supplied, visit the Settings UI to confirm the final digits are as expected: