Create an OVN-Kubernetes configuration file
MicroShift uses built-in default OVN-Kubernetes values if an OVN-Kubernetes configuration file is not created. To apply custom OVN-Kubernetes values such as pod mtu instead of using built-in defaults, you can copy ovn.yaml.default to /etc/microshift/ovn.yaml and edit the file.
Procedure
-
To create your
ovn.yamlfile, run the following command:$ 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:
$ cat /etc/microshift/ovn.yamlExample YAML file with default maximum transmission unit (MTU) valuemtu: 1400 -
To customize your configuration, you can change the MTU value. The table that follows provides details:
Table 4. Supported optional OVN-Kubernetes configurations for MicroShift Field Type Default Description Example mtu
uint32
auto
MTU value used for the pods
1300
If you change the
mtuconfiguration value in theovn.yamlfile, you must restart the host that {product-title} is running on to apply the updated setting.Example customovn.yamlconfiguration filemtu: 1300