the apiserver had troubles connecting to the PSQL #4120
-
Hello there, I recently wanted to test dtrack and made it run. We ran it ou openshift with helm chart. Now I want to connect to dbase postgre. that also was deployed on our cluster. How can we connect it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
See here for general configuration guidance: https://docs.dependencytrack.org/getting-started/database-support/ Note that for containers, the properties are set via environment variables, as explained here: https://docs.dependencytrack.org/getting-started/configuration/#api-server If you're using the Helm chart, the following should be in your custom apiServer:
extraEnv:
- name: ALPINE_DATABASE_MODE
value: "external"
- name: ALPINE_DATABASE_URL
value: "jdbc:postgresql://postgres.example.com:5432/dtrack"
- name: ALPINE_DATABASE_DRIVER
value: "org.postgresql.Driver"
- name: ALPINE_DATABASE_USERNAME
value: "dtrack"
- name: ALPINE_DATABASE_PASSWORD
value: "dtrack" Obviously replace the PostgreSQL hostname If you deployed PostgreSQL in Kubernetes, you should be able to leverage its service discovery via DNS, so something like this:
where |
Beta Was this translation helpful? Give feedback.
See here for general configuration guidance: https://docs.dependencytrack.org/getting-started/database-support/
Note that for containers, the properties are set via environment variables, as explained here: https://docs.dependencytrack.org/getting-started/configuration/#api-server
If you're using the Helm chart, the following should be in your custom
values.yaml
: