Browse Source
misc: add helm high availablity when replicas are more than 1 (#4420)
* add helm high availablity when replicas are more than 1
* refactor HA expression
***NO_CI***
pull/4480/head
Andrew Yefanov
3 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
2 deletions
-
dev/helm/templates/deployment.yaml
|
@ -39,9 +39,9 @@ spec: |
|
|
- name: DB_USER |
|
|
- name: DB_USER |
|
|
value: {{ default "wiki" .Values.postgresql.postgresqlUser }} |
|
|
value: {{ default "wiki" .Values.postgresql.postgresqlUser }} |
|
|
- name: DB_SSL |
|
|
- name: DB_SSL |
|
|
value: "{{ default "false" .Values.postgresql.ssl }}" |
|
|
|
|
|
|
|
|
value: "{{ default "false" .Values.postgresql.ssl }}" |
|
|
- name: DB_SSL_CA |
|
|
- name: DB_SSL_CA |
|
|
value: "{{ default "" .Values.postgresql.ca }}" |
|
|
|
|
|
|
|
|
value: "{{ default "" .Values.postgresql.ca }}" |
|
|
- name: DB_PASS |
|
|
- name: DB_PASS |
|
|
valueFrom: |
|
|
valueFrom: |
|
|
secretKeyRef: |
|
|
secretKeyRef: |
|
@ -51,6 +51,8 @@ spec: |
|
|
name: {{ template "wiki.postgresql.secret" . }} |
|
|
name: {{ template "wiki.postgresql.secret" . }} |
|
|
{{- end }} |
|
|
{{- end }} |
|
|
key: {{ template "wiki.postgresql.secretKey" . }} |
|
|
key: {{ template "wiki.postgresql.secretKey" . }} |
|
|
|
|
|
- name: HA |
|
|
|
|
|
value: {{ .Values.replicaCount | int | le 2 | quote }} |
|
|
ports: |
|
|
ports: |
|
|
- name: http |
|
|
- name: http |
|
|
containerPort: 3000 |
|
|
containerPort: 3000 |
|
|