Updating the Digital.ai Release License—Kubernetes Setup
You must use the custom resource definition file (CR file) in case you want to change the Digital.ai Release's license on sites installed using the Operator-based installer.
The Renew/Install License function (UI) of the Release application (default setup) is not working.
Suppose you have installed Release in the default digitalai
namespace. Use the right namespace in case you have installed Release in a custom namespace.
To renew/updated the license on an existing Operator-based Release instance:
-
Verify the CR configuration (the custom resource name is
dai-xlr
in the following example).❯ kubectl get digitalaireleases.xlr.digital.ai -n digitalai
NAME AGE
dai-xlr 179m
❯ kubectl get digitalaireleases.xlr.digital.ai dai-xlr -n digitalai -o 'jsonpath={.spec.release.configurationManagement.configuration}'
{"enabled":true,"resetFiles":["xl-release-license.lic",...],...}Important: Make sure that the
enabled
andresetFiles
keys are set totrue
and"xl-release-license.lic"
respectively. -
Convert the new Digital.ai License into base 64 format.
❯ cat <License.lic> | base64 -w 0
-
Patch the license with the previous step's output.
❯ kubectl patch digitalaireleases.xlr.digital.ai dai-xlr -n digitalai \
--type=merge \
--patch '{"spec":{"xlrLicense":"LS0tIExpY2Vuc2UgLS0tCkxpY2Vuc2U..."}}' -
Restart the Release STS (or you can wait for a few seconds for the changes to reflect automatically).
❯ kubectl rollout restart sts dai-xlr-digitalai-release -n digitalai
-
Wait for the Release pods to restart.