From ea9d433d2d7677534619c164a305a1d12eb34ca7 Mon Sep 17 00:00:00 2001 From: Alex Lebens Date: Sun, 2 Mar 2025 02:00:38 -0600 Subject: [PATCH] allow gateway --- .../cl01tl/management/headlamp/templates/http-route.yaml | 2 ++ .../cl01tl/management/headlamp/templates/namespace.yaml | 6 ++++++ clusters/cl01tl/standalone/cilium/templates/gateway.yaml | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 clusters/cl01tl/management/headlamp/templates/namespace.yaml diff --git a/clusters/cl01tl/management/headlamp/templates/http-route.yaml b/clusters/cl01tl/management/headlamp/templates/http-route.yaml index 2bf5c21b5..85552de0e 100644 --- a/clusters/cl01tl/management/headlamp/templates/http-route.yaml +++ b/clusters/cl01tl/management/headlamp/templates/http-route.yaml @@ -14,6 +14,7 @@ spec: - group: gateway.networking.k8s.io kind: Gateway name: https-gateway + namespace: kube-system hostnames: - headlamp.alexlebens.net rules: @@ -26,3 +27,4 @@ spec: kind: Service name: headlamp port: 80 + weight: 1 diff --git a/clusters/cl01tl/management/headlamp/templates/namespace.yaml b/clusters/cl01tl/management/headlamp/templates/namespace.yaml new file mode 100644 index 000000000..034e09860 --- /dev/null +++ b/clusters/cl01tl/management/headlamp/templates/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: headlamp + labels: + https-gateway-access: "true" diff --git a/clusters/cl01tl/standalone/cilium/templates/gateway.yaml b/clusters/cl01tl/standalone/cilium/templates/gateway.yaml index 280237aef..3c5964c0b 100644 --- a/clusters/cl01tl/standalone/cilium/templates/gateway.yaml +++ b/clusters/cl01tl/standalone/cilium/templates/gateway.yaml @@ -18,6 +18,12 @@ spec: protocol: HTTPS port: 443 hostname: '*.alexlebens.net' + allowedRoutes: + namespaces: + from: Selector + selector: + matchLabels: + http-gateway-access: "true" tls: certificateRefs: - group: ''