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 }}