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
  1. To create your ovn.yaml file, run the following command:

    $ sudo cp /etc/microshift/ovn.yaml.default /etc/microshift/ovn.yaml
  2. To list the contents of the configuration file you created, run the following command:

    $ cat /etc/microshift/ovn.yaml
    Example YAML file with default maximum transmission unit (MTU) value
    mtu: 1400
  3. 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

    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
    mtu: 1300