diff --git a/common/templates/traefik/_ingressroute.tpl b/common/templates/traefik/_ingressroute.tpl new file mode 100644 index 0000000000000000000000000000000000000000..c5773fc9607a8b532761e7e897c00da8e525fb26 --- /dev/null +++ b/common/templates/traefik/_ingressroute.tpl @@ -0,0 +1,20 @@ +# 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 }}