Skip to content

Commit 6fd878a

Browse files
committed
OCPBUGS-45841:clarifies overlapping ANP rules
1 parent 4a81ad3 commit 6fd878a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/nw-ovn-k-adminnetwork-policy.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ spec:
6363
custom-anp: tenant-1
6464
----
6565
<1> Specify a name for your ANP.
66-
<2> The `spec.priority` field supports a maximum of 100 ANP in the values of 0-99 in a cluster. The lower the value the higher the precedence. Creating `AdminNetworkPolicy` with the same priority creates a nondeterministic outcome.
66+
<2> The `spec.priority` field supports a maximum of 100 ANPs in the range of values `0-99` in a cluster. The lower the value, the higher the precedence because the range is read in order from the lowest to highest value. Because there is no guarantee which policy takes precedence when ANPs are created at the same priority, set ANPs at different priorities so that precedence is deliberate.
6767
<3> Specify the namespace to apply the ANP resource.
6868
<4> ANP have both ingress and egress rules. ANP rules for `spec.ingress` field accepts values of `Pass`, `Deny`, and `Allow` for the `action` field.
6969
<5> Specify a name for the `ingress.name`.

modules/nw-ovn-k-anp-best-practices.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
When building `AdminNetworkPolicy` (ANP) resources, you might consider the following when creating your policies:
1111

12-
* Because there is no guarantee which policy will take precedence when overlapping ANP are created, you should create ANP at different priorities so that precedence is well defined.
12+
* You can create ANPs that have the same priority. If you do create two ANPs at the same priority, ensure that they do not apply overlapping rules to the same traffic. Only one rule per value is applied and there is no guarantee which rule is applied when there is more than one at the same priority value. Because there is no guarantee which policy takes precedence when overlapping ANPs are created, set ANPs at different priorities so that precedence is well defined.
1313
1414
* Administrators must create ANP that apply to user namespaces not system namespaces.
1515

0 commit comments

Comments
 (0)