prometheus-community / helm-charts

Prometheus community Helm charts
Apache License 2.0
5.1k stars 5.02k forks source link

[kube-prometheus-stack] template "abc.template" not defined #2136

Closed sinhblue closed 2 years ago

sinhblue commented 2 years ago

Describe the bug a clear and concise description of what the bug is.

I tried to install prometheus stack using helm, but got an error like below

templates:\n- /etc/alertmanager/config/*.tmpl": template: kube-prometheus-stack/templates/alertmanager/secret.yaml:9:26: executing "kube-prometheus-stack/templates/alertmanager/secret.yaml" at <{{template "abc.template" .}}>: template "abc.template" not defined

What's your helm version?

v3.8.2

What's your kubectl version?

1.23

Which chart?

kube-prometheus-stack

What's the chart version?

4

What happened?

template "abc.template" not defined

What you expected to happen?

the release is installed successfully

How to reproduce it?

No response

Enter the changed values of values.yaml?

prometheusOperator: image: repository: quay.io/prometheus-operator/prometheus-operator tag: v0.57.0 sha: "" pullPolicy: IfNotPresent

grafana: ingress: enabled: true annotations: kubernetes.io/ingress.class: alb alb.ingress.kubernetes.io/target-type: ip alb.ingress.kubernetes.io/scheme: internet-facing alb.ingress.kubernetes.io/subnets: alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]' alb.ingress.kubernetes.io/ssl-redirect: '443' alb.ingress.kubernetes.io/backend-protocol: HTTP alb.ingress.kubernetes.io/healthcheck-protocol: HTTP alb.ingress.kubernetes.io/healthcheck-path: / alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-2016-08 alb.ingress.kubernetes.io/certificate-arn: path: /

prometheus: ingress: enabled: true annotations: kubernetes.io/ingress.class: alb alb.ingress.kubernetes.io/target-type: ip alb.ingress.kubernetes.io/scheme: internet-facing alb.ingress.kubernetes.io/subnets: alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]' alb.ingress.kubernetes.io/ssl-redirect: '443' alb.ingress.kubernetes.io/backend-protocol: HTTP alb.ingress.kubernetes.io/healthcheck-protocol: HTTP alb.ingress.kubernetes.io/healthcheck-path: / alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-2016-08 alb.ingress.kubernetes.io/certificate-arn: paths:

alertmanager: config: route: receiver: 'telegram-notifications' group_by: ['alertname'] routes:

Enter the command that you execute and failing/misfunctioning.

helm install prometheus -f values.yaml -n monitor prometheus/kube-prometheus-stack

Anything else we need to know?

No response

ball-hayden commented 2 years ago

@zanhsieh why was this closed, please?

Was this fixed, or is there a solution?