Skip to content

Commit 36a0510

Browse files
authored
Merge pull request #110696 from openshift-cherrypick-robot/cherry-pick-109771-to-enterprise-4.22
[enterprise-4.22] Telcodocs 2565: Transition Multi-network Policy away from iptables (GA)
2 parents 88691c5 + 2ba9655 commit 36a0510

3 files changed

Lines changed: 21 additions & 15 deletions

File tree

modules/nw-multi-network-policy-differences.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// Module included in the following assemblies:
22
//
3-
// * networking/multiple_networks/configuring-multi-network-policy.adoc
3+
// * networking/multiple_networks/secondary_networks/configuring-multi-network-policy.adoc
44

55
:_mod-docs-content-type: CONCEPT
66
[id="nw-multi-network-policy-differences_{context}"]

modules/nw-multi-network-policy-ipv6-suppport.adoc

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
// Module included in the following assemblies:
22
//
3-
// * networking/multiple_networks/configuring-multi-network-policy.adoc
3+
// * networking/multiple_networks/secondary_networks/configuring-multi-network-policy.adoc
44

55
:_mod-docs-content-type: CONCEPT
66
[id="nw-multi-network-policy-ipv6-support_{context}"]
77
= Supporting multi-network policies in IPv6 networks
88

99
[role="_abstract"]
10-
The ICMPv6 Neighbor Discovery Protocol (NDP) is a set of messages and processes that enable devices to discover and maintain information about neighboring nodes. NDP plays a crucial role in IPv6 networks, facilitating the interaction between devices on the same link.
10+
The ICMPv6 Neighbor Discovery Protocol (NDP) is a set of messages and processes that enable devices to discover and maintain information about neighboring nodes. NDP is essential in IPv6 networks, facilitating the interaction between devices on the same link.
1111

12-
The Cluster Network Operator (CNO) deploys the iptables implementation of multi-network policy when the `useMultiNetworkPolicy` parameter is set to `true`.
12+
The Cluster Network Operator (CNO) deploys the `nftables` implementation of multi-network policy when the `useMultiNetworkPolicy` parameter is set to `true`.
1313

14-
To support multi-network policies in IPv6 networks the Cluster Network Operator deploys the following set of custom rules in every pod affected by a multi-network policy:
14+
To support multi-network policies in IPv6 networks, the Cluster Network Operator deploys the following predefined `nftables` rules in every pod affected by a multi-network policy. The CNO automatically creates and manages the following `ConfigMap`. You do not need to create this resource.
1515

1616
[source,yaml]
1717
----
@@ -21,22 +21,21 @@ metadata:
2121
name: multi-networkpolicy-custom-rules
2222
namespace: openshift-multus
2323
data:
24-
2524
custom-v6-rules.txt: |
2625
# accept NDP
27-
-p icmpv6 --icmpv6-type neighbor-solicitation -j ACCEPT
28-
-p icmpv6 --icmpv6-type neighbor-advertisement -j ACCEPT
26+
icmpv6 type nd-neighbor-solicit accept
27+
icmpv6 type nd-neighbor-advert accept
2928
# accept RA/RS
30-
-p icmpv6 --icmpv6-type router-solicitation -j ACCEPT
31-
-p icmpv6 --icmpv6-type router-advertisement -j ACCEPT
29+
icmpv6 type nd-router-advert accept
30+
icmpv6 type nd-router-solicit accept
3231
----
3332

3433
where:
3534

36-
`icmpv6-type neighbor-solicitation`:: This rule allows incoming ICMPv6 neighbor solicitation messages, which are part of the neighbor discovery protocol (NDP). These messages help determine the link-layer addresses of neighboring nodes.
37-
`icmpv6-type neighbor-advertisement`:: This rule allows incoming ICMPv6 neighbor advertisement messages, which are part of NDP and provide information about the link-layer address of the sender.
38-
`icmpv6-type router-solicitation`:: This rule permits incoming ICMPv6 router solicitation messages. Hosts use these messages to request router configuration information.
39-
`icmpv6-type router-advertisement`:: This rule allows incoming ICMPv6 router advertisement messages, which give configuration information to hosts.
35+
`icmpv6 type nd-neighbor-solicit`:: This rule allows incoming ICMPv6 neighbor solicitation messages, which are part of the Neighbor Discovery Protocol (NDP). These messages help determine the link-layer addresses of neighboring nodes. In a multi-network setup, this allows other pods or the secondary interface gateway to resolve the pod's MAC address. Without this, the pod becomes 'invisible' to its neighbors on the secondary network.
36+
`icmpv6 type nd-neighbor-advert`:: This rule allows incoming ICMPv6 neighbor advertisement messages, which are part of NDP and provide information about the link-layer address of the sender. This ensures the pod can receive MAC address updates from other nodes.
37+
`icmpv6 type nd-router-advert`:: This rule allows incoming ICMPv6 router advertisement messages, which provide configuration information to hosts. This allows the pod to receive its default gateway and routing prefix dynamically from the network infrastructure.
38+
`icmpv6 type nd-router-solicit`:: This rule allows incoming ICMPv6 router solicitation messages. Hosts use these messages to request router configuration information. This ensures that when a pod's interface comes online, it can immediately request network parameters rather than waiting for the next scheduled broadcast, reducing container startup latency.
4039

4140
[NOTE]
4241
====

networking/multiple_networks/secondary_networks/configuring-multi-network-policy.adoc

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ toc::[]
99
[role="_abstract"]
1010
As an administrator, you can use the `MultiNetworkPolicy` API to create multiple network policies that manage traffic for pods that are attached to secondary networks. For example, you can create policies that allow or deny traffic based on specific ports, IPs and ranges, or labels.
1111

12-
Multi-network policies can be used to manage traffic on secondary networks in the cluster. These policies cannot manage the default cluster network or primary network of user-defined networks.
12+
Multi-network policies can be used to manage traffic on secondary networks in the cluster. These policies cannot manage the default cluster network or primary network of user-defined networks.
1313

1414
As a cluster administrator, you can configure a multi-network policy for any of the following network types:
1515

@@ -24,6 +24,13 @@ As a cluster administrator, you can configure a multi-network policy for any of
2424
Support for configuring multi-network policies for SR-IOV secondary networks is only supported with kernel network interface controllers (NICs). SR-IOV is not supported for Data Plane Development Kit (DPDK) applications.
2525
====
2626

27+
[IMPORTANT]
28+
====
29+
In {product-title} 4.22 and later, the multi-network policy backend uses `nftables`.
30+
The `iptables` backend has been removed and there is no option to revert to it.
31+
The `MultiNetworkPolicy` API and user-facing configuration are unchanged.
32+
====
33+
2734
include::modules/nw-multi-network-policy-differences.adoc[leveloffset=+1]
2835

2936
include::modules/nw-multi-network-policy-enable.adoc[leveloffset=+1]

0 commit comments

Comments
 (0)