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