File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change 24
24
configMap :
25
25
name : postgresql-conf
26
26
optional : true
27
+ - name : logs
28
+ emptyDir : {}
29
+
27
30
initContainers :
28
31
- command :
29
32
- sh
60
63
- name : postgresql
61
64
mountPath : /var/lib/postgresql/data
62
65
subPath : postgres
66
+ - name : logs
67
+ mountPath : /var/log/postgresql
63
68
envFrom :
64
69
- secretRef :
65
70
name : {{ .Values.db.secretKeyRef.name }}
71
+
72
+ {{- if .Values.db.pganalyze.enabled }}
73
+ - name : pganalyze-collector
74
+ image : quay.io/pganalyze/collector:stable
75
+ env :
76
+ - name : DB_HOST
77
+ value : localhost
78
+ - name : DB_NAME
79
+ value : mission_control
80
+ - name : DB_USERNAME
81
+ value : pganalyze
82
+ - name : DB_PASSWORD
83
+ valueFrom :
84
+ secretRef :
85
+ name : {{ .Values.db.pganalyze.secretName }}
86
+ key : DB_PASSWORD
87
+ - name : PGA_API_KEY
88
+ valueFrom :
89
+ secretRef :
90
+ name : {{ .Values.db.pganalyze.secretName }}
91
+ key : PGA_API_KEY
92
+ - name : PGA_ENABLE_LOG_EXPLAIN
93
+ value : " true"
94
+ - name : LOG_LOCATION
95
+ value : /var/log/postgresql
96
+
97
+ volumeMounts :
98
+ - name : logs
99
+ mountPath : /var/log/postgresql
100
+
101
+ {{- end }}
102
+
66
103
volumeClaimTemplates :
67
104
- metadata :
68
105
name : postgresql
Original file line number Diff line number Diff line change 108
108
resources :
109
109
requests :
110
110
memory : 4Gi
111
+
112
+ pganalyze :
113
+ enabled : false
114
+ secretName : pganalyze
115
+
111
116
smtp :
112
117
secretRef :
113
118
name : incident-commander-smtp
You can’t perform that action at this time.
0 commit comments