From c2182b4578e25a202f9213a54ea0370ed628f1fa Mon Sep 17 00:00:00 2001 From: Arvind Prabhakar Date: Tue, 30 Jun 2026 23:21:11 +0000 Subject: [PATCH] Allowed approved namespaces to access platform Postgres --- .../platform-services/postgres-ingress.yaml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 infrastructure/network-policies/platform-services/postgres-ingress.yaml diff --git a/infrastructure/network-policies/platform-services/postgres-ingress.yaml b/infrastructure/network-policies/platform-services/postgres-ingress.yaml new file mode 100644 index 0000000..c4d9a0e --- /dev/null +++ b/infrastructure/network-policies/platform-services/postgres-ingress.yaml @@ -0,0 +1,21 @@ +apiVersion: cilium.io/v2 +kind: CiliumNetworkPolicy +metadata: + name: platform-postgres-ingress + namespace: platform-services +spec: + endpointSelector: + matchLabels: + app: platform-postgres + ingress: + - fromEndpoints: + - matchLabels: + k8s:io.kubernetes.pod.namespace: forgejo + - matchLabels: + k8s:io.kubernetes.pod.namespace: openproject + - matchLabels: + k8s:io.kubernetes.pod.namespace: pgadmin + toPorts: + - ports: + - port: "5432" + protocol: TCP