Revert "remove network policies for now"

This reverts commit 665de9090a.
This commit is contained in:
2024-06-09 14:19:45 +10:00
parent e94c276611
commit f3e452ab15
13 changed files with 241 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
apiVersion: cilium.io/v2
kind: CiliumClusterwideNetworkPolicy
metadata:
name: egress-kube-dns
spec:
endpointSelector:
matchExpressions:
- key: rpi5.cluster.policy/egress-kube-dns
operator: NotIn
values:
- "false"
egress:
- toEndpoints:
- matchLabels:
io.kubernetes.pod.namespace: kube-system
k8s-app: kube-dns
toPorts:
- ports:
- port: "53"