Skip to content

Commit e918d43

Browse files
committed
fix(envoy): add missing envoy netpols
1 parent 0f4a67e commit e918d43

3 files changed

Lines changed: 79 additions & 1 deletion

File tree

‎kubernetes/apps/network/envoy-gateway/gateway/external-eu-v6.yaml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,32 @@ spec:
162162
- kind: Secret
163163
name: bitshift-systems-tls
164164

165+
---
166+
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/cilium.io/ciliumclusterwidenetworkpolicy_v2.json
167+
apiVersion: cilium.io/v2
168+
kind: CiliumNetworkPolicy
169+
metadata:
170+
name: np-e-a-envoy-gw-eu-v6
171+
spec:
172+
endpointSelector:
173+
matchLabels:
174+
app.kubernetes.io/managed-by: envoy-gateway
175+
gateway.networking.k8s.io/gateway-name: external-eu-v6
176+
egress:
177+
- toEndpoints:
178+
- matchLabels:
179+
ingress.netpol.bitshift.systems/external: allow
180+
matchExpressions:
181+
- key: k8s:io.kubernetes.pod.namespace
182+
operator: Exists
183+
- toEndpoints:
184+
- matchLabels:
185+
control-plane: envoy-gateway
186+
toPorts:
187+
- ports:
188+
- port: '18000'
189+
protocol: TCP
190+
165191
---
166192
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/cilium.io/ciliumclusterwidenetworkpolicy_v2.json
167193
apiVersion: cilium.io/v2

‎kubernetes/apps/network/envoy-gateway/gateway/external-eu.yaml‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,32 @@ spec:
162162
- kind: Secret
163163
name: bitshift-systems-tls
164164

165+
---
166+
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/cilium.io/ciliumclusterwidenetworkpolicy_v2.json
167+
apiVersion: cilium.io/v2
168+
kind: CiliumNetworkPolicy
169+
metadata:
170+
name: np-e-a-envoy-gw-eu
171+
spec:
172+
endpointSelector:
173+
matchLabels:
174+
app.kubernetes.io/managed-by: envoy-gateway
175+
gateway.networking.k8s.io/gateway-name: external-eu
176+
egress:
177+
- toEndpoints:
178+
- matchLabels:
179+
ingress.netpol.bitshift.systems/external: allow
180+
matchExpressions:
181+
- key: k8s:io.kubernetes.pod.namespace
182+
operator: Exists
183+
- toEndpoints:
184+
- matchLabels:
185+
control-plane: envoy-gateway
186+
toPorts:
187+
- ports:
188+
- port: '18000'
189+
protocol: TCP
190+
165191
---
166192
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/cilium.io/ciliumclusterwidenetworkpolicy_v2.json
167193
apiVersion: cilium.io/v2

‎kubernetes/apps/network/envoy-gateway/gateway/internal.yaml‎

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,12 +85,38 @@ spec:
8585
- kind: Secret
8686
name: bitshift-systems-tls
8787

88+
---
89+
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/cilium.io/ciliumclusterwidenetworkpolicy_v2.json
90+
apiVersion: cilium.io/v2
91+
kind: CiliumNetworkPolicy
92+
metadata:
93+
name: np-e-a-envoy-internal
94+
spec:
95+
endpointSelector:
96+
matchLabels:
97+
app.kubernetes.io/managed-by: envoy-gateway
98+
gateway.networking.k8s.io/gateway-name: internal
99+
egress:
100+
- toEndpoints:
101+
- matchLabels:
102+
ingress.netpol.bitshift.systems/internal: allow
103+
matchExpressions:
104+
- key: k8s:io.kubernetes.pod.namespace
105+
operator: Exists
106+
- toEndpoints:
107+
- matchLabels:
108+
control-plane: envoy-gateway
109+
toPorts:
110+
- ports:
111+
- port: '18000'
112+
protocol: TCP
113+
88114
---
89115
# yaml-language-server: $schema=https://k8s-schemas.home-operations.com/cilium.io/ciliumnetworkpolicy_v2.json
90116
apiVersion: cilium.io/v2
91117
kind: CiliumNetworkPolicy
92118
metadata:
93-
name: envoy-internal-wg-only
119+
name: np-i-a-envoy-internal-wg-only
94120
namespace: network
95121
spec:
96122
description: Allow ingress to internal only from the WireGuard subnet

0 commit comments

Comments
 (0)