Skip to content

Commit 08a93c0

Browse files
committed
OCPBUGS-18565: Specifiying best practices for NNCP policy applications
1 parent 83b3175 commit 08a93c0

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

modules/virt-example-vlan-nncp.adoc

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,14 @@
55
[id="virt-example-vlan-nncp_{context}"]
66
= Example: VLAN interface node network configuration policy
77

8-
Create a VLAN interface on nodes in the cluster by applying a `NodeNetworkConfigurationPolicy` manifest
9-
to the cluster.
8+
Create a VLAN interface on nodes in the cluster by applying a `NodeNetworkConfigurationPolicy` manifest to the cluster.
9+
10+
[NOTE]
11+
====
12+
Define all related configurations for the VLAN interface of a node in a single `NodeNetworkConfigurationPolicy` manifest. For example, define the VLAN interface for a node and the related routes for the VLAN interface in the same `NodeNetworkConfigurationPolicy` manifest.
13+
14+
When a node restarts, the Kubernetes NMState Operator cannot control the order in which policies are applied. Therefore, if you use separate policies for related network configurations, the Kubernetes NMState Operator might apply these policies in a sequence that results in a degraded network object.
15+
====
1016

1117
The following YAML file is an example of a manifest for a VLAN interface.
1218
It includes samples values that you must replace with your own information.

networking/k8s_nmstate/k8s-nmstate-updating-node-network-config.adoc

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ include::modules/virt-removing-interface-from-nodes.adoc[leveloffset=+2]
3838
[id="virt-nmstate-example-policy-configurations"]
3939
== Example policy configurations for different interfaces
4040

41+
The following examples show different `NodeNetworkConfigurationPolicy` manifest configurations.
42+
43+
For best performance, consider the following factors when applying a policy:
44+
45+
* When you need to apply a policy to more than one node, create a `NodeNetworkConfigurationPolicy` manifest for each target node. Scoping a policy to a single node reduces the overall length of time for the Kubernetes NMState Operator to apply the policies.
46+
+
47+
In contrast, if a single policy includes configurations for several nodes, the Kubernetes NMState Operator applies the policy to each node in sequence, which increases the overall length of time for policy application.
48+
49+
* All related network configurations should be specified in a single policy.
50+
+
51+
When a node restarts, the Kubernetes NMState Operator cannot control the order in which policies are applied. Therefore, the Kubernetes NMState Operator might apply interdependent policies in a sequence that results in a degraded network object.
52+
4153
include::modules/virt-example-bridge-nncp.adoc[leveloffset=+2]
4254

4355
include::modules/virt-example-vlan-nncp.adoc[leveloffset=+2]

0 commit comments

Comments
 (0)