25 lines
821 B
YAML
25 lines
821 B
YAML
|
{{/* Make sure all variables are set properly */}}
|
||
|
{{- include "common.setup" . }}
|
||
|
|
||
|
{{- if .Values.metrics }}
|
||
|
{{- if .Values.metrics.prometheus }}
|
||
|
{{- $_ := set .Values.podAnnotations "prometheus.io/scrape" "true" -}}
|
||
|
{{- $_ := set .Values.podAnnotations "prometheus.io/path" "/metrics" -}}
|
||
|
{{- $_ := set .Values.podAnnotations "prometheus.io/scrape" "9100" -}}
|
||
|
{{- end }}
|
||
|
{{- end }}
|
||
|
|
||
|
{{- $newArgs := (include "traefik.args" . | fromYaml) }}
|
||
|
{{- $_ := set .Values "newArgs" $newArgs -}}
|
||
|
{{- $mergedargs := concat .Values.args .Values.newArgs.args }}
|
||
|
{{- $_ := set .Values "args" $mergedargs -}}
|
||
|
|
||
|
{{- include "traefik.portalhook" . }}
|
||
|
{{- include "traefik.tlsOptions" . }}
|
||
|
{{- include "traefik.ingressRoute" . }}
|
||
|
{{- include "traefik.ingressClass" . }}
|
||
|
|
||
|
|
||
|
{{/* Render the templates */}}
|
||
|
{{ include "common.postSetup" . }}
|