Skip to content

Commit 4a8a368

Browse files
committed
OSDOCS-16200: Added dependent application of NNCPs to a node in The NodeNetworkConfigurationPolicy manifest file
1 parent 94c2e94 commit 4a8a368

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

modules/node-network-configuration-policy-file.adoc

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@
88

99
A `NodeNetworkConfigurationPolicy` (NNCP) manifest file defines policies that the Kubernetes NMState Operator uses to configure networking for nodes that exist in an {product-title} cluster.
1010

11+
[IMPORTANT]
12+
====
13+
If you want to apply multiple NNCP CRs to a node, you must create the NNCPs in a logical order that is based on the alphanumeric sorting of the policy names. The Kubernetes NMState Operator continuously checks for a newly created NNCP CR so that the Operator can instantly apply the CR to node. Consider the following logical order issue example:
14+
15+
. You create NNCP 1 for defining the bridge interface that listens on a VLAN port, such as `eth1.1000`.
16+
. You create NNCP 2 for defining the VLAN interface and specify the port for this interface, such as `eth1.1000`.
17+
. You apply NNCP 1 before you apply NNCP 2 to the node.
18+
19+
The node experiences a node connectivity issue because port `eth1.1000` does not exist. As a result, the cluster fails.
20+
====
21+
1122
After you apply a node network policy to a node, the Kubernetes NMState Operator configures the networking configuration for nodes according to the node network policy details.
1223

1324
[WARNING]

modules/virt-nmstate-example-policy-configurations.adoc

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

99
Before you read the different example `NodeNetworkConfigurationPolicy` (NNCP) manifest configurations, consider the following factors when you apply a policy to nodes so that your cluster runs under its best performance conditions:
1010

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 a defined 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 exists in the configuration of the cluster. To avoid this type of error, initially apply an NNCP to some nodes, confirm the NNCP is configured correctly for these nodes, and then proceed with applying the policy to the remaining nodes.
11+
* If you want to apply multiple NNCP CRs to a node, you must create the NNCPs in a logical order that is based on the alphanumeric sorting of the policy names. The Kubernetes NMState Operator continuously checks for a newly created NNCP CR so that the Operator can instantly apply the CR to node.
1212
1313
* When you need to apply a policy to many nodes but you only want to create a single NNCP for all the 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's configuration file. 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.
1414

0 commit comments

Comments
 (0)