fix(wireguard): Allow egress to Traefik pod ports

Traffic to the 192.168.2.5 external IP is DNATed to the Traefik pod
before NetworkPolicy is evaluated, so the 10.0.0.0/8 exclusion blocked
VPN clients from reaching services behind the gateway.
This commit is contained in:
2026-10-28 21:43:36 +05:30
parent e4346af5ba
commit d55d711463
+12
View File
@@ -17,6 +17,18 @@ spec:
podSelector: podSelector:
matchLabels: matchLabels:
k8s-app: kube-dns k8s-app: kube-dns
- ports:
- port: 8000
protocol: TCP
- port: 8443
protocol: TCP
to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: traefik
podSelector:
matchLabels:
app.kubernetes.io/name: traefik
- to: - to:
- ipBlock: - ipBlock:
cidr: 192.168.2.0/24 cidr: 192.168.2.0/24