Skip to content

Commit

Permalink
misc: add helm high availablity when replicas are more than 1 (#4420)
Browse files Browse the repository at this point in the history
* add helm high availablity when replicas are more than 1
* refactor HA expression

***NO_CI***
  • Loading branch information
goto1134 authored Sep 14, 2021
1 parent d5a5820 commit f4de80f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev/helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ spec:
- name: DB_USER
value: {{ default "wiki" .Values.postgresql.postgresqlUser }}
- name: DB_SSL
value: "{{ default "false" .Values.postgresql.ssl }}"
value: "{{ default "false" .Values.postgresql.ssl }}"
- name: DB_SSL_CA
value: "{{ default "" .Values.postgresql.ca }}"
value: "{{ default "" .Values.postgresql.ca }}"
- name: DB_PASS
valueFrom:
secretKeyRef:
Expand All @@ -51,6 +51,8 @@ spec:
name: {{ template "wiki.postgresql.secret" . }}
{{- end }}
key: {{ template "wiki.postgresql.secretKey" . }}
- name: HA
value: {{ .Values.replicaCount | int | le 2 | quote }}
ports:
- name: http
containerPort: 3000
Expand Down

0 comments on commit f4de80f

Please sign in to comment.