AlertManager loda templates from sidecar
buker opened this issue · comments
Łukasz Żułnowski commented
Describe the bug
I can't load templates to alertmanager using sidecar build in helm deployment. When alert is used i get error that can't find template.
To Reproduce
Steps to reproduce the behavior:
- Create config map with templates
kind: ConfigMap metadata: name: cortex-alertmanager-templates namespace: {{ .Release.Namespace }} annotations: k8s-sidecar-target-directory: /data/fake/templates/ labels: cortex_alertmanager: "1" apiVersion: v1 data: {{- range $key, $val := .Values.alertmanagerConfig.templateFiles }} {{ $key }}: {{ $val | quote }} {{- end }}
- Deploy config map to cluster
File from config map is showing up in pointed directory.
Expected behavior
Templates are available for alertmanager.
Environment:
- Infrastructure: Kubernetes
- Deployment tool: helm
Additional Context
Chart version: 1.7.0
I am not using multitenant/auth configuration
Ben Ye commented
It is a setup issue from your deployment/configuration. I don't know how much we could help with it
Łukasz Żułnowski commented
Could you share how properly add templates via sidecart? It will help a lot