Customize Your Site—Custom Configuration of Deploy
Prerequisites
- A Digital.ai Release installation on a kubernetes cluster
kubectlconnected to the cluster- One of the following (or later) versions of Release operator:
- 10.2.18
- 10.3.16
- 22.0.8
- 22.1.6
- 22.2.2
Custom Configuration of deployit-security.xml from Master Pods
-
Download the latest template configuration file that exists on your Deploy pod that is running. For example, find this file at
/opt/xebialabs/xl-deploy-server/conf/deployit-security.xmlin master pod.kubectl cp digitalai/dai-xld-digitalai-deploy-master-0:/opt/xebialabs/xl-deploy-server/conf/deployit-security.xml . -
Update the custom resource (CR) file or the CR on the cluster.
- Update the
spec.deploy.configurationManagement.master.configuration.scriptandspec.deploy.configurationManagement.master.configuration.scriptDataspecs in the CR file.-
Open and copy the contents of the
deploy-security.xmlfile and add the same under thedeploy-security.xmlkey. -
Update the script under the
spec.deploy.configurationManagement.master.configuration.scriptspec.Here's an example.
...
script: |-
...
cp /opt/xebialabs/xl-deploy-server/xld-configuration-management/deployit-security.xml /opt/xebialabs/xl-deploy-server/conf/deployit-security.xml && echo "Changing the deployit-security.xml";
scriptData:
...
deployit-security.xml: |-
<?xml version="1.0" encoding="UTF-8"?>
...Note: This is the example of master configuration. Under spec.deploy.configurationManagement there are also worker and centralConfiguration sections.
-
- Update the
-
Save and apply changes from the CR file. Restart the pods.
kubectl rollout restart sts dai-xld-digitalai-deploy-master -n digitalai
Custom Configuration of deployit.conf.template from Master Pods
-
Download the latest template configuration file that exists on the master Deploy pod.
For example, if you want to update the
deployiy.conf.template, it is at/opt/xebialabs/xl-deploy-server/default-conf/deployit.conf.templatein the master pod.kubectl cp digitalai/dai-xld-digitalai-deploy-master-0:/opt/xebialabs/xl-deploy-server/default-conf/deployit.conf.template . -
Update the custom resource (CR) file or CR on the cluster.
- Upate the
spec.deploy.configurationManagement.master.configuration.scriptandspec.deploy.configurationManagement.master.configuration.scriptDataspecs in the CR file.-
Open and copy the contents of the
deployit.conf.templatefile and add the contents under thedeployit.conf.templatekey. -
Add the script under the
spec.deploy.configurationManagement.master.configuration.scriptspec.Here's an example.
...
script: |-
...
cp /opt/xebialabs/xl-deploy-server/xld-configuration-management/deployit.conf.template /opt/xebialabs/xl-deploy-server/default-conf/deployit.conf.template && echo "Changing the deployit.conf.template";
scriptData:
...
deployit.conf.template: |-
# Template for non-HOCON Digital.ai Deploy configuration file
#
admin.password=${ADMIN_PASSWORD}
...Note: This is the example of master configuration. Under
spec.deploy.configurationManagementthere are also worker and centralConfiguration sections.
-
- Upate the
-
Save and apply changes from the CR file. Restart the pods.
kubectl rollout restart sts dai-xld-digitalai-deploy-master -n digitalai
Custom Configuration of deploy-server.yaml.template from Central Configuration Pods
-
Download the latest template configuration file that exists on the Deploy's Central Configuration pod.
For example, if you want to update the
deploy-server.yaml.template, it is at/opt/xebialabs/central-configuration-server/central-conf/deploy-server.yaml.templatein the master pod.kubectl cp digitalai/dai-xld-digitalai-deploy-cc-server-0:/opt/xebialabs/central-configuration-server/central-conf/deploy-server.yaml.template . -
Update the custom resource (CR) file or CR on the cluster.
-
Update the
spec.deploy.configurationManagement.centralConfiguration.configuration.scriptandspec.deploy.configurationManagement.centralConfiguration.configuration.scriptDataspecs in the CR file. -
Open and copy the contents of the
deploy-server.yaml.templatefile and add the contents to thedeploy-server.yaml.templatekey.Here's an example.
...
script: |-
...
cp /opt/xebialabs/central-configuration-server/xld-configuration-management/deploy-server.yaml.template /opt/xebialabs/central-configuration-server/central-conf/deploy-server.yaml.template && echo "Changing the deploy-server.yaml.template";
scriptData:
...
deploy-server.yaml.template: |-
deploy.server:
... -
Is OIDC enabled? If yes, disable it. Because, the changes that are from there will conflict with the changes in the
deploy-server.yaml.templatefile. Addspec.oidc.enabled: falsein the CR file.Note: The
/opt/xebialabs/central-configuration-server/centralConfiguration/deploy-oidc.yamlfile will be removed when you disable OIDC in the CR file. For this reason, you must copy this file too.For example, the
spec.deploy.configurationManagement.centralConfiguration.configuration.scriptspec would be like:...
script: |-
...
cp /opt/xebialabs/central-configuration-server/xld-configuration-management/deploy-server.yaml.template /opt/xebialabs/central-configuration-server/central-conf/deploy-server.yaml.template && echo "Changing the deploy-server.yaml.template";
cp /opt/xebialabs/central-configuration-server/xld-configuration-management/deploy-oidc.yaml /opt/xebialabs/central-configuration-server/centralConfiguration/deploy-oidc.yaml && echo "Changing the deploy-oidc.yaml";
scriptData:
...
deploy-server.yaml.template: |-
deploy.server:
...
deploy-oidc.yaml: |-
deploy.security:
... -
Save and apply changes from the CR file. Restart the pods.
kubectl rollout restart sts dai-xld-digitalai-deploy-cc-server -n digitalai
kubectl rollout restart sts dai-xld-digitalai-deploy-master -n digitalai
kubectl rollout restart sts dai-xld-digitalai-deploy-worker -n digitalai