diff --git a/charts/prometheus-systemd-exporter/Chart.yaml b/charts/prometheus-systemd-exporter/Chart.yaml index e8c4ee9c9a0b..1506dc5fc3c4 100644 --- a/charts/prometheus-systemd-exporter/Chart.yaml +++ b/charts/prometheus-systemd-exporter/Chart.yaml @@ -2,7 +2,7 @@ apiVersion: v2 name: prometheus-systemd-exporter description: A Helm chart for prometheus systemd-exporter type: application -version: 0.1.1 +version: 0.2.0 appVersion: "0.6.0" home: https://github.com/prometheus-community/systemd_exporter sources: diff --git a/charts/prometheus-systemd-exporter/templates/daemonset.yaml b/charts/prometheus-systemd-exporter/templates/daemonset.yaml index 976eb015a1e4..c85b0e3c2cc0 100644 --- a/charts/prometheus-systemd-exporter/templates/daemonset.yaml +++ b/charts/prometheus-systemd-exporter/templates/daemonset.yaml @@ -81,6 +81,9 @@ spec: - name: systemd mountPath: /host/systemd readOnly: true + {{- with .Values.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} hostNetwork: {{ .Values.hostNetwork }} hostPID: {{ .Values.hostPID }} {{- with .Values.affinity }} @@ -102,3 +105,6 @@ spec: - name: systemd hostPath: path: /run/systemd + {{- with .Values.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} diff --git a/charts/prometheus-systemd-exporter/values.yaml b/charts/prometheus-systemd-exporter/values.yaml index b7efdd07eda4..c6e4b4b005a7 100644 --- a/charts/prometheus-systemd-exporter/values.yaml +++ b/charts/prometheus-systemd-exporter/values.yaml @@ -179,3 +179,12 @@ readinessProbe: periodSeconds: 10 successThreshold: 1 timeoutSeconds: 1 + +extraVolumes: [] + # - name: systemd-example + # hostPath: + # path: /var/run/example +extraVolumeMounts: [] + # - mountPath: /var/run/example + # name: systemd-example + # readOnly: true