From 69db3bd424509e05111db8ff2473b318f5339d04 Mon Sep 17 00:00:00 2001 From: Arvind Prabhakar Date: Tue, 30 Jun 2026 22:52:24 +0000 Subject: [PATCH] Added base Cilium egress policies for platform namespaces --- .../network-policies/forgejo/base-egress.yaml | 20 +++++++++++++++++++ .../openproject/base-egress.yaml | 20 +++++++++++++++++++ .../network-policies/pgadmin/base-egress.yaml | 20 +++++++++++++++++++ .../platform-services/base-egress.yaml | 20 +++++++++++++++++++ 4 files changed, 80 insertions(+) create mode 100644 infrastructure/network-policies/forgejo/base-egress.yaml create mode 100644 infrastructure/network-policies/openproject/base-egress.yaml create mode 100644 infrastructure/network-policies/pgadmin/base-egress.yaml create mode 100644 infrastructure/network-policies/platform-services/base-egress.yaml diff --git a/infrastructure/network-policies/forgejo/base-egress.yaml b/infrastructure/network-policies/forgejo/base-egress.yaml new file mode 100644 index 0000000..794cc95 --- /dev/null +++ b/infrastructure/network-policies/forgejo/base-egress.yaml @@ -0,0 +1,20 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: apps-base-egress + namespace: forgejo +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 diff --git a/infrastructure/network-policies/openproject/base-egress.yaml b/infrastructure/network-policies/openproject/base-egress.yaml new file mode 100644 index 0000000..8196264 --- /dev/null +++ b/infrastructure/network-policies/openproject/base-egress.yaml @@ -0,0 +1,20 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: apps-base-egress + namespace: openproject +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 diff --git a/infrastructure/network-policies/pgadmin/base-egress.yaml b/infrastructure/network-policies/pgadmin/base-egress.yaml new file mode 100644 index 0000000..6ab05a7 --- /dev/null +++ b/infrastructure/network-policies/pgadmin/base-egress.yaml @@ -0,0 +1,20 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: apps-base-egress + namespace: pgadmin +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 diff --git a/infrastructure/network-policies/platform-services/base-egress.yaml b/infrastructure/network-policies/platform-services/base-egress.yaml new file mode 100644 index 0000000..e3a4ffc --- /dev/null +++ b/infrastructure/network-policies/platform-services/base-egress.yaml @@ -0,0 +1,20 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: apps-base-egress + namespace: platform-services +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