From 775741db4a2eddfc581de0ff6d38c514fcea6763 Mon Sep 17 00:00:00 2001 From: LeoFVO Date: Sat, 12 Oct 2024 11:17:11 +0200 Subject: [PATCH] docs: use config explicited in values.yml documentation is mentionning values differents from values.yml recommandations, I used the one recommanded. removed DD_DATABASE_URL as it is not specified in values and used HOST and PORT --- readme-docs/KUBERNETES.md | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/readme-docs/KUBERNETES.md b/readme-docs/KUBERNETES.md index 9fb6a45e18e..dd3e9b26c22 100644 --- a/readme-docs/KUBERNETES.md +++ b/readme-docs/KUBERNETES.md @@ -403,8 +403,7 @@ metadata: name: defectdojo-postgresql-specific type: Opaque stringData: # I chose stringData for better visualization of the credentials for debugging - postgresql-password: - db-url: psql://:@:/ + password: ``` #### Step 2.5: Install PostgreSQL (Optional) @@ -435,18 +434,27 @@ auth: Before installing the DefectDojo Helm chart, it's important to customize the `values.yaml` file. Key areas to modify include specifying the PostgreSQL connection details & the extraEnv block: ```yaml -database: postgresql +database: postgresql # refer to the following configuration + postgresql: -  postgresServer: "defectdojo-postgresql" # point to the hostname of your postgresql server -  enabled: false + enabled: false # Disable the creation of the database in the cluster + postgresServer: "127.0.0.1" # Required to skip certains tests not useful on external instances + auth: + username: defectdojo # you database user + database: defectdojo # you database name + secretKeys: + adminPasswordKey: password # the name of the field containing the password value + userPasswordKey: password # the name of the field containing the password value + replicationPasswordKey: password # the name of the field containing the password value + existingSecret: defectdojo-postgresql-specific # the secret containing your database password -# Specify the postgresql DB connection url for the external postgresql server extraEnv: -  - name: DD_DATABASE_URL -    valueFrom: -      secretKeyRef: -        name: defectdojo-postgresql-specific -        key: db-url +# Overwrite the database endpoint +- name: DD_DATABASE_HOST + value: +# Overwrite the database port +- name: DD_DATABASE_PORT + value: ``` #### Step 4: Deploy DefectDojo