Allowed approved namespaces to access platform Postgres

This commit is contained in:
Arvind Prabhakar 2026-06-30 23:21:11 +00:00
commit c2182b4578

View file

@ -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