2021-09-03 12:43:21 +00:00
|
|
|
{{/* Make sure all variables are set properly */}}
|
2022-06-07 17:41:19 +00:00
|
|
|
{{- include "tc.common.loader.init" . }}
|
2021-09-03 12:43:21 +00:00
|
|
|
|
|
|
|
{{- if .Values.metrics }}
|
|
|
|
{{- if .Values.metrics.prometheus }}
|
|
|
|
{{- $_ := set .Values.podAnnotations "prometheus.io/scrape" "true" -}}
|
|
|
|
{{- $_ := set .Values.podAnnotations "prometheus.io/path" "/metrics" -}}
|
2022-09-22 08:04:43 +00:00
|
|
|
{{- $_ := set .Values.podAnnotations "prometheus.io/port" "9180" -}}
|
2021-09-03 12:43:21 +00:00
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
|
|
|
|
{{- $newArgs := (include "traefik.args" . | fromYaml) }}
|
|
|
|
{{- $_ := set .Values "newArgs" $newArgs -}}
|
|
|
|
{{- $mergedargs := concat .Values.args .Values.newArgs.args }}
|
|
|
|
{{- $_ := set .Values "args" $mergedargs -}}
|
|
|
|
|
2021-09-03 22:12:58 +00:00
|
|
|
{{- include "traefik.portalhook" . }}
|
2021-09-03 12:43:21 +00:00
|
|
|
{{- include "traefik.tlsOptions" . }}
|
|
|
|
{{- include "traefik.ingressRoute" . }}
|
|
|
|
{{- include "traefik.ingressClass" . }}
|
|
|
|
|
|
|
|
|
|
|
|
{{/* Render the templates */}}
|
2022-06-07 17:41:19 +00:00
|
|
|
{{ include "tc.common.loader.apply" . }}
|