Skip to content

Commit 1821157

Browse files
authored
Merge pull request #92799 from JoeAldinger/OSDOCS-14395
OSDOCS-14395:adds note about legacy behavior for nil selector in netpol
2 parents 782f389 + 2ded7f6 commit 1821157

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

modules/nw-networkpolicy-about.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,16 @@ By default, all pods in a project are accessible from other pods and network end
1010

1111
If a pod is matched by selectors in one or more `NetworkPolicy` objects, then the pod will accept only connections that are allowed by at least one of those `NetworkPolicy` objects. A pod that is not selected by any `NetworkPolicy` objects is fully accessible.
1212

13-
A network policy applies to only the TCP, UDP, ICMP, and SCTP protocols. Other protocols are not affected.
13+
14+
A network policy applies to only the Transmission Control Protocol (TCP), User Datagram Protocol (UDP), Internet Control Message Protocol (ICMP), and Stream Control Transmission Protocol (SCTP) protocols. Other protocols are not affected.
1415

1516
[WARNING]
1617
====
17-
Network policy does not apply to the host network namespace. Pods with host networking enabled are unaffected by network policy rules. However, pods connecting to the host-networked pods might be affected by the network policy rules.
18+
* A network policy does not apply to the host network namespace. Pods with host networking enabled are unaffected by network policy rules. However, pods connecting to the host-networked pods might be affected by the network policy rules.
19+
20+
* Using the `namespaceSelector` field without the `podSelector` field set to `{}` will not include `hostNetwork` pods. You must use the `podSelector` set to `{}` with the `namespaceSelector` field in order to target `hostNetwork` pods when creating network policies.
1821
19-
Network policies cannot block traffic from localhost or from their resident nodes.
22+
* Network policies cannot block traffic from localhost or from their resident nodes.
2023
====
2124

2225
The following example `NetworkPolicy` objects demonstrate supporting different scenarios:

0 commit comments

Comments
 (0)