From 1acea43a6dd5c00e57a72ba9549c077e421d8a28 Mon Sep 17 00:00:00 2001 From: Arvind Prabhakar Date: Tue, 30 Jun 2026 22:47:48 +0000 Subject: [PATCH] Added base Cilium egress policy for apps namespace --- .../network-policies/apps/base-egress.yaml | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 infrastructure/network-policies/apps/base-egress.yaml diff --git a/infrastructure/network-policies/apps/base-egress.yaml b/infrastructure/network-policies/apps/base-egress.yaml new file mode 100644 index 0000000..d631529 --- /dev/null +++ b/infrastructure/network-policies/apps/base-egress.yaml @@ -0,0 +1,20 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: apps-base-egress + namespace: apps +spec: + endpointSelector: {} + egress: + - toEntities: + - kube-apiserver + - toEndpoints: + - matchLabels: + k8s:io.kubernetes.pod.namespace: kube-system + k8s:k8s-app: kube-dns + toPorts: + - ports: + - port: "53" + protocol: UDP + - port: "53" + protocol: TCP