From 1c82fdc706cb37e4d588010de6e1d68685186a64 Mon Sep 17 00:00:00 2001 From: Ani Argjiri Date: Fri, 13 Dec 2024 14:58:47 +0100 Subject: [PATCH] feat: added cnpg networkpolicy --- quickstart-postgresql/templates/networkpolicy.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/quickstart-postgresql/templates/networkpolicy.yaml b/quickstart-postgresql/templates/networkpolicy.yaml index b9a7093..732c342 100644 --- a/quickstart-postgresql/templates/networkpolicy.yaml +++ b/quickstart-postgresql/templates/networkpolicy.yaml @@ -14,6 +14,12 @@ spec: - Ingress ingress: - from: + - namespaceSelector: + matchLabels: + name: cnpg-system + podSelector: + matchLabels: + app.kubernetes.io/name: cloudnative-pg - namespaceSelector: matchLabels: name: {{ .Release.Namespace }}