Updating the Digital.ai Deploy License—Operator-based Setup

You must 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:

  1. 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}'
    ❯ kubectl get digitalaideploys.xld.digital.ai dai-xld -n digitalai -o 'jsonpath={.spec.deploy.configurationManagement.worker.configuration}'

    Important: Make sure that the enabled and resetFiles keys are set to true 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 the resetFiles needs to be "deployit-license.lic".

  2. Convert the new Digital.ai License into base 64 format.

    ❯ cat <License.lic> | base64 -w 0
  3. 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..."}}'
  4. 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
  5. Wait for the Deploy pods to restart.