Skip to content

AlertManager loda templates from sidecar #5677

Open
@buker

Description

@buker

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions