Skip to content

Commit d7dc023

Browse files
committed
OCPBUGS-44255: Added important note to the Configuration for an VLAN additional network section
1 parent acc448a commit d7dc023

17 files changed

+81
-59
lines changed

modules/configuration-ovnk-network-plugin-json-object.adoc

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * networking/multiple_networks/configuring-additional-network.adoc
4+
15
:_mod-docs-content-type: REFERENCE
26
[id="configuration-ovnk-network-plugin-json-object_{context}"]
37
= OVN-Kubernetes network plugin JSON configuration table
@@ -18,9 +22,9 @@ The CNI specification version. The required value is `0.3.1`.
1822
|`string`
1923
|
2024
The name of the network. These networks are not namespaced. For example, you can have a network named
21-
`l2-network` referenced from two different `NetworkAttachmentDefinitions` that exist on two different
22-
namespaces. This ensures that pods making use of the `NetworkAttachmentDefinition` on their own different
23-
namespaces can communicate over the same secondary network. However, those two different `NetworkAttachmentDefinitions` must also share the same network specific parameters such as `topology`, `subnets`, `mtu`, and `excludeSubnets`.
25+
`l2-network` referenced from two different `NetworkAttachmentDefinition` CRDs that exist on two different
26+
namespaces. This ensures that pods making use of the `NetworkAttachmentDefinition` CRD on their own different
27+
namespaces can communicate over the same secondary network. However, those two different `NetworkAttachmentDefinition` CRDs must also share the same network specific parameters such as `topology`, `subnets`, `mtu`, and `excludeSubnets`.
2428

2529
|`type`
2630
|`string`
@@ -49,8 +53,8 @@ The maximum transmission unit (MTU). The default value, `1300`, is automatically
4953
|`netAttachDefName`
5054
|`string`
5155
|
52-
The metadata `namespace` and `name` of the network attachment definition object where this
53-
configuration is included. For example, if this configuration is defined in a `NetworkAttachmentDefinition` in namespace `ns1` named `l2-network`, this should be set to `ns1/l2-network`.
56+
The metadata `namespace` and `name` of the network attachment definition CRD where this
57+
configuration is included. For example, if this configuration is defined in a `NetworkAttachmentDefinition` CRD in namespace `ns1` named `l2-network`, this should be set to `ns1/l2-network`.
5458

5559
|`excludeSubnets`
5660
|`string`

modules/configuring-localnet-switched-topology.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// is split with tags. The tag includes don't pull in the module header above.
1111

1212
// tag::localnet-intro[]
13-
The switched `localnet` topology interconnects the workloads created as Network Attachment Definitions (NAD) through a cluster-wide logical switch to a physical network.
13+
The switched `localnet` topology interconnects the workloads created as Network Attachment Definitions (NADs) through a cluster-wide logical switch to a physical network.
1414
// end::localnet-intro[]
1515

1616
// tag::localnet-content[]
@@ -44,7 +44,7 @@ spec:
4444
----
4545
<1> The name for the configuration object.
4646
<2> A node selector that specifies the nodes to apply the node network configuration policy to.
47-
<3> The name for the additional network from which traffic is forwarded to the OVS bridge. This additional network must match the name of the `spec.config.name` field of the `NetworkAttachmentDefinition` object that defines the OVN-Kubernetes additional network.
47+
<3> The name for the additional network from which traffic is forwarded to the OVS bridge. This additional network must match the name of the `spec.config.name` field of the `NetworkAttachmentDefinition` CRD that defines the OVN-Kubernetes additional network.
4848
<4> The name of the OVS bridge on the node. This value is required only if you specify `state: present`.
4949
<5> The state for the mapping. Must be either `present` to add the bridge or `absent` to remove the bridge. The default value is `present`.
5050

@@ -84,7 +84,7 @@ spec:
8484
<2> A node selector that specifies the nodes to apply the node network configuration policy to.
8585
<3> A new OVS bridge, separate from the default bridge used by OVN-Kubernetes for all cluster traffic.
8686
<4> A network device on the host system to associate with this new OVS bridge.
87-
<5> The name for the additional network from which traffic is forwarded to the OVS bridge. This additional network must match the name of the `spec.config.name` field of the `NetworkAttachmentDefinition` object that defines the OVN-Kubernetes additional network.
87+
<5> The name for the additional network from which traffic is forwarded to the OVS bridge. This additional network must match the name of the `spec.config.name` field of the `NetworkAttachmentDefinition` CRD that defines the OVN-Kubernetes additional network.
8888
<6> The name of the OVS bridge on the node. This value is required only if you specify `state: present`.
8989
<7> The state for the mapping. Must be either `present` to add the bridge or `absent` to remove the bridge. The default value is `present`.
9090

modules/configuring-ovnk-additional-networks.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
[id="configuration-ovnk-additional-networks_{context}"]
77
= Configuration for an OVN-Kubernetes additional network
88

9-
The {openshift-networking} OVN-Kubernetes network plugin allows the configuration of secondary network interfaces for pods. To configure secondary network interfaces, you must define the configurations in the `NetworkAttachmentDefinition` custom resource (CR).
9+
The {openshift-networking} OVN-Kubernetes network plugin allows the configuration of secondary network interfaces for pods. To configure secondary network interfaces, you must define the configurations in the `NetworkAttachmentDefinition` custom resource definition (CRD).
1010

1111
[NOTE]
1212
====
13-
Pod and multi-network policy creation might remain in a pending state until the OVN-Kubernetes control plane agent in the nodes processes the associated `network-attachment-definition` CR.
13+
Pod and multi-network policy creation might remain in a pending state until the OVN-Kubernetes control plane agent in the nodes processes the associated `network-attachment-definition` CRD.
1414
====
1515

1616
You can configure an OVN-Kubernetes additional network in either _layer 2_ or _localnet_ topologies.
@@ -22,7 +22,7 @@ The following sections provide example configurations for each of the topologies
2222

2323
[NOTE]
2424
====
25-
Networks names must be unique. For example, creating multiple `NetworkAttachmentDefinition` CRs with different configurations that reference the same network is unsupported.
25+
Networks names must be unique. For example, creating multiple `NetworkAttachmentDefinition` CRDs with different configurations that reference the same network is unsupported.
2626
====
2727

2828
[id="configuration-additional-network-types-supported-platforms_{context}"]

modules/configuring-pods-static-ip.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ spec:
4040
imagePullPolicy: IfNotPresent
4141
name: agnhost-container
4242
----
43-
<1> The name of the network. This value must be unique across all `NetworkAttachmentDefinitions`.
43+
<1> The name of the network. This value must be unique across all `NetworkAttachmentDefinition` CRDs.
4444
<2> The MAC address to be assigned for the interface.
4545
<3> The name of the network interface to be created for the pod.
4646
<4> The IP addresses to be assigned to the network interface.

modules/nw-about-configuring-master-interface-container.adoc

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,10 @@
33
// * networking/multiple_networks/configuring-additional-network.adoc
44

55
:_mod-docs-content-type: CONCEPT
6-
76
[id="nw-about-configuring-master-interface-container_{context}"]
87
= About configuring the master interface in the container network namespace
98

10-
In {product-title} 4.14 and later, the ability to allow users to create a MAC-VLAN, IP-VLAN, and VLAN subinterface based on a master interface in a container namespace is now generally available.
11-
12-
This feature allows you to create the master interfaces as part of the pod network configuration in a separate network attachment definition. You can then base the VLAN, MACVLAN, or IPVLAN on this interface without requiring the knowledge of the network configuration of the node.
9+
You can create a MAC-VLAN, an IP-VLAN, or a VLAN subinterface that is based on a `master` interface that exists in a container namespace. You can also create a `master` interface as part of the pod network configuration in a separate network attachment definition CRD.
1310

14-
To ensure the use of a container namespace master interface, specify the `linkInContainer` and set the value to `true` in the VLAN, MACVLAN, or IPVLAN plugin configuration depending on the particular type of additional network.
11+
To use a container namespace `master` interface, you must specify `true` for the
12+
`linkInContainer` parameter that exists in the subinterface configuration of the `NetworkAttachmentDefinition` CRD.

modules/nw-multus-configure-dualstack-ip-address.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// * networking/multiple_networks/configuring-additional-network.adoc
44

55
:_mod-docs-content-type: PROCEDURE
6-
76
[id="nw-multus-configure-dualstack-ip-address_{context}"]
87
= Creating a configuration for assignment of dual-stack IP addresses dynamically
98

modules/nw-multus-configuring-whereabouts-ip-reconciler-schedule.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
// * networking/multiple_networks/configuring-additional-network.adoc
44

55
:_mod-docs-content-type: PROCEDURE
6-
76
[id="nw-multus-configuring-whereabouts-ip-reconciler-schedule_{context}"]
87
= Configuring the Whereabouts IP reconciler schedule
98

modules/nw-multus-create-master-interface-bridge-cni.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,22 @@
66
[id="nw-multus-create-master-interface-bridge-cni_{context}"]
77
= Creating a subinterface based on a bridge master interface in a container namespace
88

9-
Creating a subinterface can be applied to other types of interfaces. Follow this procedure to create a subinterface based on a bridge master interface in a container namespace.
9+
You can create a subinterface based on a bridge `master` interface that exists in a container namespace. Creating a subinterface can be applied to other types of interfaces.
1010

1111
.Prerequisites
1212
* You have installed the OpenShift CLI (`oc`).
1313
* You are logged in to the {product-title} cluster as a user with `cluster-admin` privileges.
1414
1515
.Procedure
1616

17-
. Create a dedicated container namespace where you want to deploy your pod by running the following command:
17+
. Create a dedicated container namespace where you want to deploy your pod by entering the following command:
1818
+
1919
[source,terminal]
2020
----
2121
$ oc new-project test-namespace
2222
----
2323

24-
. Using the following YAML example, create a bridge `NetworkAttachmentDefinition` custom resource (CR) file named `bridge-nad.yaml`:
24+
. Using the following YAML example, create a bridge `NetworkAttachmentDefinition` custom resource definition (CRD) file named `bridge-nad.yaml`:
2525
+
2626
[source,yaml]
2727
----
@@ -46,14 +46,14 @@ spec:
4646
}'
4747
----
4848

49-
. Run the following command to apply the `NetworkAttachmentDefinition` CR to your {product-title} cluster:
49+
. Run the following command to apply the `NetworkAttachmentDefinition` CRD to your {product-title} cluster:
5050
+
5151
[source,terminal]
5252
----
5353
$ oc apply -f bridge-nad.yaml
5454
----
5555

56-
. Verify that the `NetworkAttachmentDefinition` CR has been created successfully by running the following command:
56+
. Verify that you successfully created a `NetworkAttachmentDefinition` CRD by entering the following command:
5757
+
5858
[source,terminal]
5959
----
@@ -90,7 +90,7 @@ spec:
9090
----
9191
+
9292
<1> Specifies the ethernet interface to associate with the network attachment. This is subsequently configured in the pod networks annotation.
93-
<2> Specifies that the master interface is in the container network namespace.
93+
<2> Specifies that the `master` interface is in the container network namespace.
9494

9595
. Apply the YAML file by running the following command:
9696
+
@@ -99,7 +99,7 @@ spec:
9999
$ oc apply -f ipvlan-additional-network-configuration.yaml
100100
----
101101

102-
. Verify that the `NetworkAttachmentDefinition` CR has been created successfully by running the following command:
102+
. Verify that the `NetworkAttachmentDefinition` CRD has been created successfully by running the following command:
103103
+
104104
[source,terminal]
105105
----
@@ -149,7 +149,7 @@ spec:
149149
drop: [ALL]
150150
----
151151
+
152-
<1> Specifies the name to be used as the master for the IPVLAN interface.
152+
<1> Specifies the name to be used as the `master` for the IPVLAN interface.
153153

154154
. Apply the YAML file by running the following command:
155155
+

modules/nw-multus-create-multiple-vlans-sriov.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ spec:
126126
}
127127
----
128128
+
129-
<1> The VLAN configuration needs to specify the master name. This can be configured in the pod networks annotation.
129+
<1> The VLAN configuration needs to specify the `master` name. This can be configured in the pod networks annotation.
130130
<2> The `linkInContainer` parameter must be specified.
131131

132132
.. Apply the YAML file by running the following command:
@@ -194,7 +194,7 @@ spec:
194194
type: "RuntimeDefault"
195195
----
196196
+
197-
<1> The name to be used as the master for the VLAN interface.
197+
<1> The name to be used as the `master` for the VLAN interface.
198198

199199
.. Apply the YAML file by running the following command:
200200
+

modules/nw-multus-create-network-apply.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// Module included in the following assemblies:
22
//
3+
// * networking/multiple_networks/configuring-additional-network.adoc
34

45
:_mod-docs-content-type: PROCEDURE
56
[id="nw-multus-create-network-apply_{context}"]

0 commit comments

Comments
 (0)