Configuring hybrid networking

    You can configure your cluster to use hybrid networking with OVN-Kubernetes. This allows a hybrid cluster that supports different node networking configurations. For example, this is necessary to run both Linux and Windows nodes in a cluster.

    Prerequisites

    • You defined for the networking.networkType parameter in the install-config.yaml file. See the installation documentation for configuring OKD network customizations on your chosen cloud provider for more information.

    Procedure

    1. Create a stub manifest file for the advanced network configuration that is named in the <installation_directory>/manifests/ directory:

      where:

      <installation_directory>

      Specifies the directory name that contains the manifests/ directory for your cluster.

    2. Open the cluster-network-03-config.yml file in an editor and configure OVN-Kubernetes with hybrid networking, such as in the following example:

      1Specify the CIDR configuration used for nodes on the additional overlay network. The CIDR cannot overlap with the clusterNetwork CIDR.
      2Specify a custom VXLAN port for the additional overlay network. This is required for running Windows nodes in a cluster installed on vSphere, and must not be configured for any other cloud provider. The custom port can be any open port excluding the default 4789 port. For more information on this requirement, see the Microsoft documentation on Pod-to-pod connectivity between hosts is broken.
    3. Save the cluster-network-03-config.yml file and quit the text editor.

    Complete any further installation configurations, and then create your cluster. Hybrid networking is enabled when the installation process is finished.

    Additional resources