VictoriaMetrics / operator

Kubernetes operator for Victoria Metrics
Apache License 2.0
423 stars 141 forks source link

[help] How can I load a second file into the Alertmanager pod created by the VMAlertmanager CRD, in addition to the Alertmanager.yaml? #419

Closed r0fls closed 2 years ago

r0fls commented 2 years ago

This is admittedly a support question, but it's not clear how to load a second file to the pod from the docs here: https://docs.victoriametrics.com/operator/quick-start.html#vmalertmanager

I'm trying to do this with an alerting monzo.tmpl file, which can be utilized by Alertmanager for Slack message formatting. Any help or guidance would be appreciated. I have the below secret being loaded successfully by the AM pod containing the AM configuration, but it's not picking up the second file that should be there, monzo.tmpl:

alertmanager.yaml: <data>
monzo.tmpl: <data>

from on the Alertmanager pod

ls /etc/alertmanager/config/
alertmanager.yaml
# There should be a second monzo.tmpl file here, is there a way to configure the CRD to load this?
r0fls commented 2 years ago

Nvermind, looks like the deployment is actually referencing the incorrect secret. Now the question is why 🤔 I'll keep looking at that though, since it seems probably unrelated to changes in the CRD.