Whenever you renew your Anchore Enterprise license you will need to update your Anchore deployment with the new license information. Updating license information is straightforward and simply requires that you add the new license to your deployment as a secret, and then restart all of your Anchore pods or containers so they pick up the new information.
Applying a new license – Kubernetes
1. Delete the existing secret containing your Anchore license:
kubectl delete secret -n <anchore_namespace> anchore-enterprise-license
2. Re-create the secret using the new license information in your license.yaml file:
kubectl create secret -n <anchore_namespace> generic anchore-enterprise-license --from-file='license.yaml=<PATH/TO/LICENSE.YAML>'
3. Restart the Anchore pods:
helm upgrade -n <anchore_namespace> <anchore_deployment_name> anchore/anchore-enterprise
If Anchore services do not register the new license secret after running the upgrade command, we highly recommend you reach out to Anchore Support for assistance.
However, if you wish to proceed without assistance, you may use the following command to force the recreation of all pods:
kubectl delete --all pods --namespace=<anchore_namepace>
Applying a new license – Docker Compose
Note: We strongly recommend that any production instances of Anchore Enterprise be deployed on Kubernetes.
1. Replace the existing license.yaml file with the new license.yaml file in the directory containing your Anchore docker-compose.yaml file.
2. Restart all containers:
docker-compose up -d