diff --git a/common/templates/traefik/_ingressroutetcp.tpl b/common/templates/traefik/_ingressroutetcp.tpl new file mode 100644 index 0000000000000000000000000000000000000000..3e52a5079acfd2b66ead717030e38f613e7957f7 --- /dev/null +++ b/common/templates/traefik/_ingressroutetcp.tpl @@ -0,0 +1,26 @@ +{{- define "common.traefik.ingressroutetcp" -}} +apiVersion: {{ .Values.apiVersion | default "traefik.io/v1alpha1" }} +kind: IngressRouteTCP +metadata: + name: {{ .Values.name | default "ingress-route-tcp" | quote }} + {{- with .Values.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} + labels: + {{- include "common.variables.labels" . | nindent 4 }} +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 }}