Skip to content
Snippets Groups Projects
Commit 57b23b4f authored by Andri Joos's avatar Andri Joos :blush:
Browse files

add traefik ingressroute template

parent 56efd1ac
No related branches found
No related tags found
No related merge requests found
# https://github.com/traefik/traefik/blob/master/docs/content/routing/providers/kubernetes-crd.md#kind-ingressroute
{{- define "common.traefik.ingressroute" }}
apiVersion: {{ .Values.apiVersion | default "traefik.io/v1alpha1" }}
kind: IngressRoute
metadata:
name: {{ .Values.name | default "ingress-route" }}
spec:
{{- with .Values.entryPoints }}
entryPoints:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.routes }}
routes:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- with .Values.tls }}
tls:
{{- toYaml . | nindent 4 }}
{{- end }}
{{- end }}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment