Files
truecharts/charts/stable/traefik/templates/gateway.yaml
T
Kjeld Schouten-LebbingandGitHub 111680d41b Traefik rework (#546)
* first part

* port most relevant settings

* Don't include common or old crap

* Try moving persistence to common

* Initial work on Traefik SCALE UI

* some cleanup and consistency patches. Also:
Enable metrics, because that's just container-side metrics and doesn't require prometheus CRD's

* super basic portal

* don't use portal as a template

* whoops

* whoops 2.0
2021-06-10 14:49:42 +02:00

34 lines
915 B
YAML

{{- if .Values.experimental.kubernetesGateway.enabled }}
---
apiVersion: networking.x-k8s.io/v1alpha1
kind: Gateway
metadata:
name: traefik-gateway
namespace: default
spec:
gatewayClassName: traefik
listeners:
- port: {{ .Values.ports.web.port }}
protocol: HTTP
routes:
kind: HTTPRoute
selector:
matchLabels:
app: {{ .Values.experimental.kubernetesGateway.appLabelSelector }}
{{- range $index, $cert:= .Values.experimental.kubernetesGateway.certificates }}
- port: {{ $.Values.ports.websecure.port }}
protocol: HTTPS
tls:
certificateRef:
name: {{ $cert.name }}
group: {{ $cert.group }}
kind: {{ $cert.kind }}
routes:
kind: HTTPRoute
selector:
matchLabels:
app: {{ $.Values.experimental.kubernetesGateway.appLabelSelector }}
{{- end }}
{{- end }}