diff --git a/charts/prometheus-exporter/templates/_helpers.tpl b/charts/prometheus-exporter/templates/_helpers.tpl index c3b96fd..3e1a497 100644 --- a/charts/prometheus-exporter/templates/_helpers.tpl +++ b/charts/prometheus-exporter/templates/_helpers.tpl @@ -81,8 +81,10 @@ Create the name of the service account to use periodSeconds: 5 resources: {{- toYaml .Values.resources | nindent 4 }} - {{- with .Values.volumeMounts }} volumeMounts: + - name: metric-volume + mountPath: /app/var/metrics/ + {{- with .Values.volumeMounts }} {{- toYaml . | nindent 4 }} {{- end }} {{- with .Values.env }} diff --git a/charts/prometheus-exporter/templates/deployment.yaml b/charts/prometheus-exporter/templates/deployment.yaml index da0d579..4991942 100644 --- a/charts/prometheus-exporter/templates/deployment.yaml +++ b/charts/prometheus-exporter/templates/deployment.yaml @@ -36,6 +36,8 @@ spec: - name: nginx-config-volume configMap: name: {{ include "prometheus-exporter.fullname" . }}-nginx-config + - name: metrics-volume + emptyDir: {} {{- with .Values.volumes }} {{- toYaml . | nindent 8 }} {{- end }}