Dmitry Shemin
1 week ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
13 additions and
0 deletions
-
dev/helm/templates/deployment.yaml
-
dev/helm/values.yaml
|
|
@ -56,6 +56,14 @@ spec: |
|
|
|
value: {{ .Values.externalPostgresql.databaseURL }} |
|
|
|
- name: NODE_TLS_REJECT_UNAUTHORIZED |
|
|
|
value: {{ default "1" .Values.externalPostgresql.NODE_TLS_REJECT_UNAUTHORIZED | quote }} |
|
|
|
{{- else if and (.Values.externalPostgresql).existsSecret (.Values.externalPostgresql).existsSecretKeyName }} |
|
|
|
- name: DATABASE_URL |
|
|
|
valueFrom: |
|
|
|
secretKeyRef: |
|
|
|
name: {{ .Values.externalPostgresql.existsSecret }} |
|
|
|
key: {{ .Values.externalPostgresql.existsSecretKeyName }} |
|
|
|
- name: NODE_TLS_REJECT_UNAUTHORIZED |
|
|
|
value: {{ default "1" .Values.externalPostgresql.NODE_TLS_REJECT_UNAUTHORIZED | quote }} |
|
|
|
{{- else }} |
|
|
|
- name: DB_HOST |
|
|
|
value: {{ template "wiki.postgresql.host" . }} |
|
|
|
|
|
@ -142,6 +142,11 @@ sideload: |
|
|
|
# externalPostgresql: |
|
|
|
# # note: ?sslmode=require => ?ssl=true |
|
|
|
# databaseURL: postgresql://postgres:postgres@postgres:5432/wiki?ssl=true |
|
|
|
# # Exists secret which will be used for fetching database connection URL. |
|
|
|
# existsSecret: wiki-database-secret |
|
|
|
# # Used key in the secret. |
|
|
|
# # Value in that key should be like in `externalPostgresql.databaseURL`. |
|
|
|
# existsSecretKeyName: connection-url |
|
|
|
# # For self signed CAs, like DigitalOcean |
|
|
|
# NODE_TLS_REJECT_UNAUTHORIZED: "0" |
|
|
|
|
|
|
|