Skip to content

Commit

Permalink
fix: Update volume names
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoya-de committed Nov 13, 2023
1 parent 5e65279 commit de8397f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions charts/prometheus-exporter/templates/_helpers.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ Create the name of the service account to use
resources:
{{- toYaml .Values.resources | nindent 4 }}
volumeMounts:
- name: metric-volume
- name: {{ include "prometheus-exporter.fullname" . }}-metrics-volume
mountPath: /app/var/metrics/
{{- with .Values.volumeMounts }}
{{- toYaml . | nindent 4 }}
Expand Down Expand Up @@ -111,10 +111,10 @@ Create the name of the service account to use
resources:
{{- toYaml .Values.resources | nindent 4 }}
volumeMounts:
- name: nginx-config-volume
- name: {{ include "prometheus-exporter.fullname" . }}-nginx-config-volume
mountPath: /etc/nginx/conf.d/default.conf
subPath: nginx.conf
- name: nginx-config-volume
- name: {{ include "prometheus-exporter.fullname" . }}-nginx-config-volume
mountPath: /etc/nginx/fastcgi_params
subPath: fastcgi_params
{{- with .Values.volumeMounts }}
Expand Down
4 changes: 2 additions & 2 deletions charts/prometheus-exporter/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ spec:
containers:
{{- include "prometheus-exporter.containers" . | nindent 8 }}
volumes:
- name: nginx-config-volume
- name: {{ include "prometheus-exporter.fullname" . }}-nginx-config-volume
configMap:
name: {{ include "prometheus-exporter.fullname" . }}-nginx-config
- name: metrics-volume
- name: {{ include "prometheus-exporter.fullname" . }}-metrics-volume
emptyDir: {}
{{- with .Values.volumes }}
{{- toYaml . | nindent 8 }}
Expand Down

0 comments on commit de8397f

Please sign in to comment.