From befd013b73edcdfe28923bd159f946fe532b7356 Mon Sep 17 00:00:00 2001
From: Sheogorath <sheogorath@shivering-isles.com>
Date: Tue, 31 Oct 2023 18:19:50 +0100
Subject: [PATCH] feat(shared): Add explicit access to ingress controller

---
 shared/networkpolicies/allow-to-public-web.yaml | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/shared/networkpolicies/allow-to-public-web.yaml b/shared/networkpolicies/allow-to-public-web.yaml
index 7c9277a65..25b619eed 100644
--- a/shared/networkpolicies/allow-to-public-web.yaml
+++ b/shared/networkpolicies/allow-to-public-web.yaml
@@ -5,6 +5,18 @@ metadata:
   name: allow-to-public-web
 spec:
   egress:
+  - to:
+    - namespaceSelector:
+        matchLabels:
+          kubernetes.io/metadata.name: nginx-system
+      podSelector:
+        matchLabels:
+          app.kubernetes.io/name: haproxy
+    ports:
+      - protocol: TCP
+        port: 80
+      - protocol: TCP
+        port: 443
   - to:
     - ipBlock:
         except:
-- 
GitLab