From 7e57e56a3d869efc1ca105f0cb010e7a140955df Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Tue, 6 Feb 2024 03:15:42 +0100
Subject: [PATCH] fix(shared): Fix database cluster policy to allow
 communication between members

---
 shared/networkpolicies/allow-from-database.yaml | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/shared/networkpolicies/allow-from-database.yaml b/shared/networkpolicies/allow-from-database.yaml
index e10a83f8a..2e72b08f1 100644
--- a/shared/networkpolicies/allow-from-database.yaml
+++ b/shared/networkpolicies/allow-from-database.yaml
@@ -38,6 +38,21 @@ spec:
       protocol: TCP
     - port: 8008
       protocol: TCP
+  - from:
+    - podSelector:
+        matchExpressions:
+          - key: application
+            operator: In
+            values:
+              - spilo
+        matchLabels: {}
+    ports:
+    - port: 8008
+      protocol: TCP
+    - port: 5432
+      protocol: TCP
+    - port: 8080
+      protocol: TCP
   podSelector:
     matchExpressions:
       - key: application
-- 
GitLab