Skip to content

Commit 0d5cb67

Browse files
authored
Merge pull request #80393 from dfitzmau/OCPBUGS-38402
OCPBUGS-38402: Updated the Example policy configurations for differen…
2 parents 0b2d213 + d2073dd commit 0d5cb67

File tree

2 files changed

+19
-14
lines changed

2 files changed

+19
-14
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/k8s_nmstate/k8s-nmstate-updating-node-network-config.adoc
4+
5+
:_mod-docs-content-type: CONCEPT
6+
[id="virt-nmstate-example-policy-configurations_{context}"]
7+
= Example policy configurations for different interfaces
8+
9+
Before you read the different example `NodeNetworkConfigurationPolicy` (NNCP) manifest configurations, consider the following factors when you apply a policy so that your cluster runs at its best performance conditions:
10+
11+
* When you need to apply a policy to more than one node, create a `NodeNetworkConfigurationPolicy` manifest for each target node. The Kubernetes NMState Operator applies the policy to each node with an NNCP in an unspecified order. Scoping a policy with this approach reduces the length of time for policy application but risks a cluster-wide outage if an error is in the cluster's configuration. To avoid this type of error, initially apply NNCP to some nodes, and after you confirm they are configured correctly, proceed with applying the policy to the remaining nodes.
12+
13+
* When you need to apply a policy to many nodes but you only want to create a single NNCP for all target nodes, the Kubernetes NMState Operator applies the policy to each node in sequence. You can set the speed and coverage of policy application for target nodes with the `maxUnavailable` parameter in the cluster configuration. By setting a lower percentage value for the parameter, you can reduce the risk of a cluster-wide outage if the outage impacts the small percentage of nodes that are receiving the policy application.
14+
15+
* Consider specifying all related network configurations in a single policy.
16+
17+
* When a node restarts, the Kubernetes NMState Operator cannot control the order that it applies policies to nodes. The Kubernetes NMState Operator might apply interdependent policies in a sequence that results in a degraded network object.

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -35,20 +35,8 @@ include::modules/virt-confirming-policy-updates-on-nodes.adoc[leveloffset=+2]
3535

3636
include::modules/virt-removing-interface-from-nodes.adoc[leveloffset=+2]
3737

38-
[id="virt-nmstate-example-policy-configurations"]
39-
== Example policy configurations for different interfaces
40-
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.
38+
// Example policy configurations for different interfaces
39+
include::modules/virt-nmstate-example-policy-configurations.adoc[leveloffset=+1]
5240

5341
include::modules/virt-example-bridge-nncp.adoc[leveloffset=+2]
5442

0 commit comments

Comments
 (0)