From 9b93278760f002ad38024a0ae18a82366cc725dc Mon Sep 17 00:00:00 2001 From: Sirius DevOps Date: Tue, 15 Sep 2026 00:15:13 -0400 Subject: [PATCH] feat: internal-only Cilium Gateway on WG overlay for private services MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a second Gateway listening on port 8081, namespace-scoped to `internal`. Only HTTPRoutes in the `internal` namespace can attach, so grafana and other private services are not reachable from public HTTPRoutes. The listener is on the WG overlay (siriussec 10.10.0.2 + linode 10.10.0.5, both `gateway=true`). No public IP, no LAN route — only peers on 10.10.0.0/24 can reach it. Also wires the new `internal` gateway into Flux via infrastructure/home/kustomization.yaml. --- infrastructure/home/kustomization.yaml | 1 + infrastructure/networking/internal/gateway.yaml | 16 ++++++++++++++++ .../networking/internal/kustomization.yaml | 5 +++++ .../networking/internal/namespace.yaml | 6 ++++++ 4 files changed, 28 insertions(+) create mode 100644 infrastructure/networking/internal/gateway.yaml create mode 100644 infrastructure/networking/internal/kustomization.yaml create mode 100644 infrastructure/networking/internal/namespace.yaml diff --git a/infrastructure/home/kustomization.yaml b/infrastructure/home/kustomization.yaml index 874f364..8552af3 100644 --- a/infrastructure/home/kustomization.yaml +++ b/infrastructure/home/kustomization.yaml @@ -3,5 +3,6 @@ kind: Kustomization resources: - ../storage - ../networking/gateway + - ../networking/internal # Cilium HelmRelease lives in networking/cilium and is applied by Flux # after the helm-controller exists. Do not kubectl-apply it. diff --git a/infrastructure/networking/internal/gateway.yaml b/infrastructure/networking/internal/gateway.yaml new file mode 100644 index 0000000..cc2beef --- /dev/null +++ b/infrastructure/networking/internal/gateway.yaml @@ -0,0 +1,16 @@ +apiVersion: gateway.networking.k8s.io/v1 +kind: Gateway +metadata: + name: internal + namespace: internal + labels: + dedicated: network +spec: + gatewayClassName: cilium + listeners: + - name: http-internal + protocol: HTTP + port: 8081 + allowedRoutes: + namespaces: + from: Same diff --git a/infrastructure/networking/internal/kustomization.yaml b/infrastructure/networking/internal/kustomization.yaml new file mode 100644 index 0000000..a64a0c8 --- /dev/null +++ b/infrastructure/networking/internal/kustomization.yaml @@ -0,0 +1,5 @@ +apiVersion: kustomize.config.k8s.io/v1beta1 +kind: Kustomization +resources: + - namespace.yaml + - gateway.yaml diff --git a/infrastructure/networking/internal/namespace.yaml b/infrastructure/networking/internal/namespace.yaml new file mode 100644 index 0000000..ad62a56 --- /dev/null +++ b/infrastructure/networking/internal/namespace.yaml @@ -0,0 +1,6 @@ +apiVersion: v1 +kind: Namespace +metadata: + name: internal + labels: + istio-injection: disabled