License and sales key renewal
When your license expires or you obtain a new sales key, you must renew your Custom Edition license. In addition, you can view detailed license information that includes expiration dates, entitlements, and status.
License renewal
When your license expires or you get a new sales key, you must renew your Custom Edition license. To do so, complete the following steps:
- Download the new license either by using the kubectl plug-in or by using the curl command.
- Use the kubectl plug-in to download the new license.
kubectl instana license download --sales-key <SalesKey> - Use the curl command to download the license.
curl https://instana.io/onprem/license/download/v2/allValid?salesId=<your-SalesKey> -o license.json
- Use the kubectl plug-in to download the new license.
- Update the license in the
config.yamlfile that is in the unit secret.-
List the available units in your namespace to identify the unit name.
kubectl get unit -n <unit_namespace> -
Extract
config.yamlfrom the Instana unit secret and save it asconfig-<unit_name>.yamlfile. Use the unit name from the previous step.kubectl get secret <unit_name> -n <unit_namespace> -o jsonpath="{.data.config\.yaml}" | base64 -d > config-<unit_name>.yamlNote: If multiple units exist in the namespace, run this command for each unit. -
Update the license in the
config-<unit_name>.yamlfile with the new license. -
Update the unit secret with the new
config-<unit_name>.yamlfile.kubectl delete secret <unit_name> -n <unit_namespace> kubectl create secret generic <unit_name> -n <unit_namespace> --from-file=config.yaml=/path/to/config-<unit_name>.yamlNote: The new license automatically activates after the old license expires. If a message appears on the Instana UI about license expiry, you can ignore the message.
-
View license information
You can now view detailed license information by using the kubectl instana command.
- To view license details, run the following command:
kubectl instana license info --tenant <tenant-name> --unit <unit-name> -n <namespace> - To view the license usage summary, including status, remaining days, expiry date, and active license, run the following command:
kubectl instana license info --tenant <tenant-name> --unit <unit-name> -n <namespace> --usage
Sales key renewal
When you get a new sales key, you must update the salesKey value in the config.yaml of Instana core secret.
To update the sales key, complete the following steps:
-
Extract the
config.yamlfrom the Instana core secret and save it asconfig.yamlfilekubectl get secret instana-core -n <core_namespace> -o jsonpath={'.data.config\.yaml'}|base64 -d > config.yaml -
Update the
salesKeyvalue inconfig.yamlfile with the new sales key. -
Update the Instana core secret with the updated
config.yamlfile.kubectl delete secret instana-core -n <core_namespace> kubectl create secret generic instana-core -n <core_namespace> --from-file=config.yaml=/path/to/config.yaml