1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/microshift-configuring-ovn.adoc

64 lines
1.5 KiB
Plaintext

// Module included in the following assemblies:
//
// * microshift_networking/microshift-networking.adoc
:_mod-docs-content-type: PROCEDURE
[id="microshift-config-OVN-K_{context}"]
= Creating an OVN-Kubernetes configuration file
{microshift-short} uses built-in default OVN-Kubernetes values if an OVN-Kubernetes configuration file is not created. You can write an OVN-Kubernetes configuration file to `/etc/microshift/ovn.yaml`. An example file is provided for your configuration.
.Procedure
. To create your `ovn.yaml` file, run the following command:
+
[source, yaml]
----
$ sudo cp /etc/microshift/ovn.yaml.default /etc/microshift/ovn.yaml
----
. To list the contents of the configuration file you created, run the following command:
+
[source, yaml]
----
$ cat /etc/microshift/ovn.yaml
----
+
.Example YAML file with default maximum transmission unit (MTU) value
+
[source,yaml]
----
mtu: 1400
----
. To customize your configuration, you can change the MTU value. The table that follows provides details:
+
.Supported optional OVN-Kubernetes configurations for {microshift-short}
[cols="5",options="header"]
|===
|Field
|Type
|Default
|Description
|Example
|mtu
|uint32
|auto
|MTU value used for the pods
|1300
|===
+
[IMPORTANT]
====
If you change the `mtu` configuration value in the `ovn.yaml` file, you must restart the host that {product-title} is running on to apply the updated setting.
====
+
.Example custom `ovn.yaml` configuration file
+
[source, yaml]
----
mtu: 1300
----