diff --git a/k8s/charts/templates/app-prometheus.yaml b/k8s/charts/templates/app-prometheus.yaml index cb5fcd4..f813e71 100644 --- a/k8s/charts/templates/app-prometheus.yaml +++ b/k8s/charts/templates/app-prometheus.yaml @@ -69,9 +69,9 @@ spec: ingressClassName: traefik annotations: {} hosts: - - "{{$prometheusHost}}.{{ .Values.global.domain }}" - path: /prometheus - pathType: Prefix + - host: "{{$prometheusHost}}.{{ .Values.global.domain }}" + path: /prometheus + pathType: Prefix {{ if .Values.global.tls.enabled }} tls: - secretName: "tls-{{$prometheusHost}}.{{.Values.global.domain}}"