Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion modules/configuration-ovnk-multi-network-policy.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Module included in the following assemblies:
//
// * networking/multiple_networks/configuring-additional-network.adoc
// * networking/multiple_networks/secondary_networks/creating-secondary-nwt-ovnk.adoc

:_mod-docs-content-type: CONCEPT
[id="compatibility-with-multi-network-policy_{context}"]
Expand Down
11 changes: 8 additions & 3 deletions modules/configuration-ovnk-network-plugin-json-object.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Module included in the following assemblies:
//
// * networking/multiple_networks/configuring-additional-network.adoc
// * networking/multiple_networks/secondary_networks/creating-secondary-nwt-ovnk.adoc

:_mod-docs-content-type: REFERENCE
[id="configuration-ovnk-network-plugin-json-object_{context}"]
Expand Down Expand Up @@ -46,8 +46,13 @@ When omitted, the logical switch implementing the network only provides layer 2

|`mtu`
|`string`
|
The maximum transmission unit (MTU). If you do not set a value, the Cluster Network Operator (CNO) sets a default MTU value by calculating the difference among the underlay MTU of the primary network interface, the overlay MTU of the pod network, such as the Geneve (Generic Network Virtualization Encapsulation), and byte capacity of any enabled features, such as IPsec.
a|
The maximum transmission unit (MTU). If you do not set a value, the Cluster Network Operator (CNO) sets a default MTU value by calculating the difference among the underlay MTU of the primary network interface, the overlay MTU of the pod network, such as the Geneve (Generic Network Virtualization Encapsulation), and byte capacity of any enabled features, such as IPsec.

[IMPORTANT]
====
If the `topology` field is set to `localnet`, the MTU value must match the MTU value of the underlying network. If left unset, the default value is the MTU of the overlay network, not the underlay network.
====

|`netAttachDefName`
|`string`
Expand Down
2 changes: 1 addition & 1 deletion modules/configuring-layer-two-switched-topology.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Module included in the following assemblies:
//
// * networking/multiple_networks/configuring-additional-network.adoc
// * networking/multiple_networks/secondary_networks/creating-secondary-nwt-ovnk.adoc

:_mod-docs-content-type: CONCEPT
[id="configuration-layer-two-switched-topology_{context}"]
Expand Down
12 changes: 7 additions & 5 deletions modules/configuring-localnet-switched-topology.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Module included in the following assemblies:
//
// * networking/ovn_kubernetes_network_provider/configuring-secondary-networks.adoc
// * networking/multiple_networks/secondary_networks/creating-secondary-nwt-ovnk.adoc

:_mod-docs-content-type: REFERENCE
[id="configuration-localnet-switched-topology_{context}"]
Expand Down Expand Up @@ -47,9 +47,10 @@ spec:
<3> The name for the secondary network from which traffic is forwarded to the OVS bridge. This secondary network must match the name of the `spec.config.name` field of the `NetworkAttachmentDefinition` CRD that defines the OVN-Kubernetes secondary network.
<4> The name of the OVS bridge on the node. This value is required only if you specify `state: present`.
<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`.
+

The following JSON example configures a localnet secondary network that is named `localnet1`. Note that the value for the `mtu` parameter must match the MTU value that was set for the secondary network interface that is mapped to the `br-ex` bridge interface.
+

.Example `localnet` configuration JSON
[source,json]
----
{
Expand Down Expand Up @@ -107,9 +108,10 @@ spec:
<6> Specifies the name of the secondary network that forwards traffic to the OVS bridge. This name must match the value of the `spec.config.name` field in the `NetworkAttachmentDefinition` CRD that defines the OVN-Kubernetes secondary network.
<7> Specifies the name of the OVS bridge on the node. The value is required only when `state: present` is set.
<8> Specifies the state of the mapping. Valid values are `present` to add the bridge or `absent` to remove the bridge. The default value is `present`.
+

The following JSON example configures a localnet secondary network that is named `localnet2`. Note that the value for the `mtu` parameter must match the MTU value that was set for the `eth1` secondary network interface.
+

.Example `localnet` configuration JSON
[source,json]
----
{
Expand Down
10 changes: 5 additions & 5 deletions modules/configuring-ovnk-additional-networks.adoc
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
// Module included in the following assemblies:
//
// * networking/multiple_networks/configuring-additional-network.adoc
// *networking/multiple_networks/secondary_networks/creating-secondary-nwt-ovnk.adoc

:_mod-docs-content-type: CONCEPT
[id="configuration-ovnk-additional-networks_{context}"]
= Configuration for an OVN-Kubernetes secondary network

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).
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).

[NOTE]
====
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.
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.
====

You can configure an OVN-Kubernetes secondary network in layer 2, layer 3, or localnet topologies. For more information about features supported on these topologies, see "UserDefinedNetwork and NetworkAttachmentDefinition support matrix".
You can configure an OVN-Kubernetes secondary network in layer 2, layer 3, or localnet topologies. For more information about features supported on these topologies, see "UserDefinedNetwork and NetworkAttachmentDefinition support matrix".

The following sections provide example configurations for each of the topologies that OVN-Kubernetes currently allows for secondary networks.

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

[id="configuration-additional-network-types-supported-platforms_{context}"]
Expand Down
2 changes: 1 addition & 1 deletion modules/configuring-pods-secondary-network.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Module included in the following assemblies:
//
// * networking/multiple_networks/configuring-additional-network.adoc
// * networking/multiple_networks/secondary_networks/creating-secondary-nwt-ovnk.adoc

:_mod-docs-content-type: REFERENCE
[id="configuring-pods-secondary-network_{context}"]
Expand Down
1 change: 1 addition & 0 deletions modules/configuring-pods-static-ip.adoc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Module included in the following assemblies:
//
// * networking/multiple_networks/configuring-additional-network.adoc
// * networking/multiple_networks/secondary_networks/creating-secondary-nwt-ovnk.adoc

:_mod-docs-content-type: CONCEPT
[id="configuring-pods-static-ip_{context}"]
Expand Down