You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/virt-creating-interface-on-nodes.adoc
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,8 @@ Create an interface on nodes in the cluster by applying a `NodeNetworkConfigurat
10
10
11
11
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.
12
12
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
+
13
15
.Procedure
14
16
15
17
. 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
19
21
apiVersion: nmstate.io/v1
20
22
kind: NodeNetworkConfigurationPolicy
21
23
metadata:
22
-
name: <br1-eth1-policy> <1>
24
+
name: br1-eth1-policy <1>
23
25
spec:
24
26
nodeSelector: <2>
25
27
node-role.kubernetes.io/worker: "" <3>
28
+
maxUnavailable: 3 <4>
26
29
desiredState:
27
30
interfaces:
28
31
- name: br1
29
-
description: Linux bridge with eth1 as a port <4>
32
+
description: Linux bridge with eth1 as a port <5>
30
33
type: linux-bridge
31
34
state: up
32
35
ipv4:
@@ -42,12 +45,25 @@ spec:
42
45
<1> Name of the policy.
43
46
<2> Optional: If you do not include the `nodeSelector` parameter, the policy applies to all nodes in the cluster.
44
47
<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.
46
50
47
51
. Create the node network policy:
48
52
+
49
53
[source,terminal]
50
54
----
51
-
$ oc apply -f <br1-eth1-policy.yaml> <1>
55
+
$ oc apply -f br1-eth1_policy.yaml <1>
52
56
----
53
57
<1> File name of the node network configuration policy manifest.
0 commit comments