Using your own DB

If you are planning to use an existing database, you will need to configure the environment variables, in the values.yaml file.

See this documentation link for a basic understanding of environment variables used in the Digital.ai Deploy helm chart.

Using an existing or external database

Note: Skip this section if you do not want to use your own database instance. The Digital.ai Deploy Helm chart will deploy a single instance of PostgreSQL by default.

However, if you plan on using your own database with Digital.ai Deploy, then you need to follow the steps given below.

Edit the following in the values.yaml file:

  • Change 'postgresql.install' to 'false'
  • UseExistingDB.Enabled: true
  • UseExistingDB.XL_DB_URL: jdbc:postgresql://<postgres-service-name>.<namespace>.svc.cluster.local:5432/<xld-database-name>
  • UseExistingDB.XL_DB_USERNAME: Database User for xl-deploy
  • UseExistingDB.XL_DB_PASSWORD: Database Password for xl-deploy

Note: To specify the values for the steps above, you must first create the following database in your existing postgresql instance, using the steps given below:

CREATE USER <xld-username> WITH
NOSUPERUSER
NOCREATEDB
NOCREATEROLE
ENCRYPTED PASSWORD '<xld-password>';

CREATE DATABASE <xld-database-name>;

ALTER ROLE <xld-username> WITH PASSWORD '<xld-password>';
ALTER DATABASE <xld-database-name> OWNER to <xld-username>;

The postgres-service-name is obtained by executing command

kubectl get service

k8s deploy posgtres

Next Step