feat: internal-only Cilium Gateway on WG overlay for private services
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.
This commit is contained in:
parent
a2b9256d97
commit
9b93278760
4 changed files with 28 additions and 0 deletions
|
|
@ -3,5 +3,6 @@ kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ../storage
|
- ../storage
|
||||||
- ../networking/gateway
|
- ../networking/gateway
|
||||||
|
- ../networking/internal
|
||||||
# Cilium HelmRelease lives in networking/cilium and is applied by Flux
|
# Cilium HelmRelease lives in networking/cilium and is applied by Flux
|
||||||
# after the helm-controller exists. Do not kubectl-apply it.
|
# after the helm-controller exists. Do not kubectl-apply it.
|
||||||
|
|
|
||||||
16
infrastructure/networking/internal/gateway.yaml
Normal file
16
infrastructure/networking/internal/gateway.yaml
Normal file
|
|
@ -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
|
||||||
5
infrastructure/networking/internal/kustomization.yaml
Normal file
5
infrastructure/networking/internal/kustomization.yaml
Normal file
|
|
@ -0,0 +1,5 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- namespace.yaml
|
||||||
|
- gateway.yaml
|
||||||
6
infrastructure/networking/internal/namespace.yaml
Normal file
6
infrastructure/networking/internal/namespace.yaml
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: internal
|
||||||
|
labels:
|
||||||
|
istio-injection: disabled
|
||||||
Loading…
Reference in a new issue