* 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
34 lines
915 B
YAML
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 }}
|