Merge "Prometheus-alertmanager: modify wrong variables"
This commit is contained in:
commit
d119744c6e
@ -21,7 +21,7 @@ COMMAND="${@:-start}"
|
||||
|
||||
function start () {
|
||||
exec /bin/alertmanager \
|
||||
-config.file=/etc/config/alertmanager.yml \
|
||||
-config.file=/etc/alertmanager/config.yml \
|
||||
-storage.path={{ .Values.conf.command_flags.storage.path }} \
|
||||
-mesh.listen-address={{ .Values.conf.command_flags.mesh.listen_address }} \
|
||||
$(generate_peers)
|
||||
|
@ -22,8 +22,10 @@ kind: ConfigMap
|
||||
metadata:
|
||||
name: alertmanager-etc
|
||||
data:
|
||||
alertmanager.yml: |
|
||||
config.yml: |
|
||||
{{ toYaml .Values.conf.alertmanager | indent 4 }}
|
||||
alert-templates.tmpl: |
|
||||
{{ toYaml .Values.conf.alert_templates | indent 4 }}
|
||||
{{- if .Values.conf.alert_templates }}
|
||||
{{ .Values.conf.alert_templates | indent 4 }}
|
||||
{{- end }}
|
||||
{{- end }}
|
||||
|
@ -101,8 +101,8 @@ spec:
|
||||
subPath: alert-templates.tmpl
|
||||
readOnly: true
|
||||
- name: alertmanager-etc
|
||||
mountPath: /etc/config/alertmanager.yml
|
||||
subPath: alertmanager.yml
|
||||
mountPath: /etc/alertmanager/config.yml
|
||||
subPath: config.yml
|
||||
readOnly: true
|
||||
- name: alertmanager-bin
|
||||
mountPath: /tmp/alertmanager.sh
|
||||
|
@ -297,4 +297,4 @@ conf:
|
||||
room_id: 85
|
||||
message_format: html
|
||||
notify: true
|
||||
alertmanager_templates: null
|
||||
alert_templates: null
|
||||
|
Loading…
Reference in New Issue
Block a user