@@ -25,29 +25,29 @@ spec:
2525 imagePullPolicy : {{ .Values.synapse.pgbouncer.image.pullPolicy }}
2626 resources :
2727 {{ toYaml .Values.synapse.pgbouncer.resources | nindent 10 }}
28+ {{- if .Values.synapse.pgbouncer.extraEnvs }}
2829 env :
29- - name : PGBOUNCER_PORT
30- value : " 5432"
31- - name : POSTGRESQL_HOST
32- value : {{ .Values.synapse.postgres.host | quote }}
33- - name : PGBOUNCER_DATABASE
34- value : {{ .Values.synapse.postgres.dbname | quote }}
35- - name : POSTGRESQL_USERNAME
36- value : {{ .Values.synapse.postgres.user | quote }}
37- - name : POSTGRESQL_PASSWORD
38- value : {{ .Values.synapse.postgres.password | quote }}
39- - name : PGBOUNCER_AUTH_TYPE
40- value : {{ .Values.synapse.pgbouncer.authType | quote }}
41- - name : PGBOUNCER_MAX_CLIENT_CONN
42- value : {{ .Values.synapse.pgbouncer.maxClientConn | quote }}
43- - name : PGBOUNCER_DEFAULT_POOL_SIZE
44- value : {{ .Values.synapse.pgbouncer.poolSize | quote }}
45- - name : PGBOUNCER_POOL_MODE
46- value : {{ .Values.synapse.pgbouncer.poolMode | quote }}
30+ {{ toYaml .Values.synapse.pgbouncer.extraEnvs | trimSuffix "\n" | nindent 10 }}
31+ {{- end }}
4732 ports :
4833 - containerPort : 5432
4934 name : pgbouncer
5035 protocol : TCP
36+ readinessProbe :
37+ tcpSocket :
38+ port : 5432
39+ initialDelaySeconds : 10
40+ periodSeconds : 5
41+ livenessProbe :
42+ tcpSocket :
43+ port : 5432
44+ initialDelaySeconds : 60
45+ periodSeconds : 10
46+ volumeMounts :
47+ - name : config
48+ mountPath : /etc/pgbouncer/
49+ - name : userlist
50+ mountPath : /etc/userlist/
5151 {{- if .Values.synapse.pgbouncer.nodeSelector }}
5252 nodeSelector :
5353 {{ toYaml .Values.synapse.pgbouncer.nodeSelector | nindent 8 }}
6868 priorityClassName : " {{ .Values.synapse.pgbouncer.priorityClassName }}"
6969 {{- end }}
7070 terminationGracePeriodSeconds : 10
71+ volumes :
72+ - name : config
73+ configMap :
74+ name : synapse-pgbouncer
75+ - name : userlist
76+ secret :
77+ secretName : synapse-pgbouncer
0 commit comments