cortexproject / cortex

A horizontally scalable, highly available, multi-tenant, long term Prometheus.

Home Page:https://cortexmetrics.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AlertManager loda templates from sidecar

buker opened this issue · comments

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:

  1. 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 }}
  2. 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

It is a setup issue from your deployment/configuration. I don't know how much we could help with it

Could you share how properly add templates via sidecart? It will help a lot