Skip to content

Commit 0c83ad2

Browse files
author
Shikha Jhala
committed
CNV-11202: Documenting rollout of node network configuration policy
1 parent f8862cb commit 0c83ad2

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

modules/virt-creating-interface-on-nodes.adoc

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ Create an interface on nodes in the cluster by applying a `NodeNetworkConfigurat
1010

1111
By default, the manifest applies to all nodes in the cluster. To add the interface to specific nodes, add the `spec: nodeSelector` parameter and the appropriate `<key>:<value>` for your node selector.
1212

13+
You can configure multiple nmstate-enabled nodes concurrently. The configuration applies to 50% of the nodes in parallel. This strategy prevents the entire cluster from being unavailable if the network connection fails. To apply the policy configuration in parallel to a specific portion of the cluster, use the `maxUnavailable` field.
14+
1315
.Procedure
1416

1517
. Create the `NodeNetworkConfigurationPolicy` manifest. The following example configures a Linux bridge on all worker nodes:
@@ -19,14 +21,15 @@ By default, the manifest applies to all nodes in the cluster. To add the interfa
1921
apiVersion: nmstate.io/v1
2022
kind: NodeNetworkConfigurationPolicy
2123
metadata:
22-
name: <br1-eth1-policy> <1>
24+
name: br1-eth1-policy <1>
2325
spec:
2426
nodeSelector: <2>
2527
node-role.kubernetes.io/worker: "" <3>
28+
maxUnavailable: 3 <4>
2629
desiredState:
2730
interfaces:
2831
- name: br1
29-
description: Linux bridge with eth1 as a port <4>
32+
description: Linux bridge with eth1 as a port <5>
3033
type: linux-bridge
3134
state: up
3235
ipv4:
@@ -42,12 +45,25 @@ spec:
4245
<1> Name of the policy.
4346
<2> Optional: If you do not include the `nodeSelector` parameter, the policy applies to all nodes in the cluster.
4447
<3> This example uses the `node-role.kubernetes.io/worker: ""` node selector to select all worker nodes in the cluster.
45-
<4> Optional: Human-readable description for the interface.
48+
<4> Optional: Specifies the maximum number of nmstate-enabled nodes that the policy configuration can be applied to concurrently. This parameter can be set to either a percentage value (string), for example, `"10%"`, or an absolute value (number), such as `3`.
49+
<5> Optional: Human-readable description for the interface.
4650

4751
. Create the node network policy:
4852
+
4953
[source,terminal]
5054
----
51-
$ oc apply -f <br1-eth1-policy.yaml> <1>
55+
$ oc apply -f br1-eth1_policy.yaml <1>
5256
----
5357
<1> File name of the node network configuration policy manifest.
58+
+
59+
.Example output
60+
[source,terminal]
61+
----
62+
NAME STATUS
63+
node01.br1-eth1-policy Pending
64+
node02.br1-eth1-policy Progressing
65+
node03.br1-eth1-policy Available
66+
node04.br1-eth1-policy Progressing
67+
node05.br1-eth1-policy Progressing
68+
node06.br1-eth1-policy Pending
69+
----

0 commit comments

Comments
 (0)