Updating the Digital.ai Deploy License—Operator-based Setup
You can use the custom resource definition file (CR file) in case you want to change the Digital.ai Deploy's license on sites installed using the Operator-based installer.
Note: The Renew/Install License function (UI) of the Deploy application (default setup) is not working.
Suppose you have installed Deploy in the default digitalai
namespace. Use the right namespace in case you have installed Deploy in a custom namespace.
To renew/updated the license on an existing Operator-based Deploy instance:
-
Verify the CR configuration (the custom resource name is
dai-xld
in the following example).❯ kubectl get digitalaideploys.xld.digital.ai -n digitalai
NAME AGE
dai-xld 179m
❯ kubectl get digitalaideploys.xld.digital.ai dai-xld -n digitalai -o 'jsonpath={.spec.deploy.configurationManagement.master.configuration}'
{"enabled":true,"resetFiles":["deployit-license.lic",...],...}
❯ kubectl get digitalaideploys.xld.digital.ai dai-xld -n digitalai -o 'jsonpath={.spec.deploy.configurationManagement.worker.configuration}'
{"enabled":true,"resetFiles":["deployit-license.lic",...],...}Important: Make sure that the
enabled
andresetFiles
keys are set totrue
and"deployit-license.lic"
respectively.For working of the update of the license from the deploy CR, here needs to be
enabled
set to true and in theresetFiles
needs to be"deployit-license.lic"
. -
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 digitalaideploys.xld.digital.ai dai-xld -n digitalai \
--type=merge \
--patch '{"spec":{"xldLicense":"LS0tIExpY2Vuc2UgLS0tCkxpY2Vuc2U..."}}' -
Restart the Deploy STS (or you can wait for a few seconds for the changes to reflect automatically).
❯ kubectl rollout restart sts dai-xld-digitalai-deploy-master -n digitalai
❯ kubectl rollout restart sts dai-xld-digitalai-deploy-worker -n digitalai -
Wait for the Deploy pods to restart.