-
Notifications
You must be signed in to change notification settings - Fork 32
Open
Description
This small antipatern was crashing deployment via fluxcd. Due differences in Traefik entrypoint. Temporary fixed with post-render.
helm-charts/charts/keep/templates/ingress-traefik.yaml
Lines 10 to 16 in a7f1500
| annotations: | |
| traefik.ingress.kubernetes.io/router.middlewares: {{ .Release.Namespace }}-strip-prefix@kubernetescrd | |
| traefik.ingress.kubernetes.io/router.entrypoints: web | |
| traefik.ingress.kubernetes.io/timeouts.idle: "3600s" | |
| traefik.ingress.kubernetes.io/timeouts.connect: "3600s" | |
| traefik.ingress.kubernetes.io/timeouts.read: "3600s" | |
| traefik.ingress.kubernetes.io/timeouts.write: "3600s" |
Parameterization: Instead of hardcoding the entrypoint (web), consider making it configurable via Helm values, which makes your chart more reusable. Post render modification are not required.
annotations:
traefik.ingress.kubernetes.io/router.middlewares: {{ .Values.global.ingress.traefik.middleware | default (printf "%s-strip-prefix@kubernetescrd" .Release.Namespace) }}
traefik.ingress.kubernetes.io/router.entrypoints: {{ .Values.global.ingress.traefik.entrypoints | default "web" }}
{{- with .Values.global.ingress.traefik.timeouts }}
{{- range $type, $value := . }}
traefik.ingress.kubernetes.io/timeouts.{{ $type }}: "{{ $value }}"
{{- end }}
{{- end }}global:
ingress:
traefik:
middleware: ""
entrypoints: web
timeouts:
idle: "3600s"
connect: "3600s"
read: "3600s"
write: "3600s" Metadata
Metadata
Assignees
Labels
No labels