fix(db): allow inter-hub to reach net-kingdom-pg
This commit is contained in:
parent
18c1b86498
commit
c16fa1f81c
2 changed files with 28 additions and 1 deletions
24
helm/net-kingdom-pg-inter-hub-networkpolicy.yaml
Normal file
24
helm/net-kingdom-pg-inter-hub-networkpolicy.yaml
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue