Skip to content

Commit

Permalink
docs: use config explicited in values.yml
Browse files Browse the repository at this point in the history
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
  • Loading branch information
leofvo committed Oct 12, 2024
1 parent 67fe011 commit 775741d
Showing 1 changed file with 19 additions and 11 deletions.
30 changes: 19 additions & 11 deletions readme-docs/KUBERNETES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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: <user-password>
db-url: psql://<username>:<password>@<hostname>:<port>/<database-name>
password: <user-password>
```

#### Step 2.5: Install PostgreSQL (Optional)
Expand Down Expand Up @@ -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: <YOUR_POSTGRES_HOST>
# Overwrite the database port
- name: DD_DATABASE_PORT
value: <YOUR_POSTGRES_PORT>
```

#### Step 4: Deploy DefectDojo
Expand Down

0 comments on commit 775741d

Please sign in to comment.