From bb1abb867627ab2d5da9922d328a188809b1569b Mon Sep 17 00:00:00 2001 From: David Kwon Date: Thu, 14 Nov 2024 11:54:27 -0500 Subject: [PATCH] fix: NetworkPolicy podSelector (#2818) Signed-off-by: dkwon17 --- .../pages/configuring-network-policies.adoc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/modules/administration-guide/pages/configuring-network-policies.adoc b/modules/administration-guide/pages/configuring-network-policies.adoc index f9d00300dd..65a2f7ed9d 100644 --- a/modules/administration-guide/pages/configuring-network-policies.adoc +++ b/modules/administration-guide/pages/configuring-network-policies.adoc @@ -84,9 +84,7 @@ metadata: name: allow-from-workspaces-namespaces namespace: {prod-namespace} <1> spec: - podSelector: - matchLabels: - app.kubernetes.io/component: che-gateway <2> + podSelector: {} <2> ingress: - from: - podSelector: {} @@ -98,7 +96,7 @@ spec: ---- <1> The {prod-short} namespace. The default is `{prod-namespace}`. -<2> The `podSelector` only selects che-gateway pods +<2> The empty `podSelector` selects all pods in the {prod-short} namespace. ==== +