fix(db): allow inter-hub to reach net-kingdom-pg

This commit is contained in:
tegwick 2026-06-14 21:43:26 +02:00
parent 18c1b86498
commit c16fa1f81c
2 changed files with 28 additions and 1 deletions

View file

@ -0,0 +1,24 @@
# Allow inter-hub to use its existing database on the net-kingdom-pg cluster.
# The databases namespace has a default-deny-all policy, so app DB access must
# be granted explicitly per consuming namespace.
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: allow-ingress-from-inter-hub-net-kingdom-pg
namespace: databases
spec:
podSelector:
matchLabels:
cnpg.io/cluster: net-kingdom-pg
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector:
matchLabels:
name: inter-hub
podSelector: {}
ports:
- port: 5432
protocol: TCP