Cloud Native 5 min read

How Kube-OVN 0.5 Boosts Kubernetes NetworkPolicy and Custom Networking

Kube-OVN 0.5 introduces full Kubernetes NetworkPolicy support via Openflow, customizable container interfaces and MTU, automatic system parameter tuning, auto‑computed default gateways, and additional CLI options, while its open‑source design brings comprehensive OVN‑based networking features to Kubernetes across diverse platforms.

Cloud Native Technology Community
Cloud Native Technology Community
Cloud Native Technology Community
How Kube-OVN 0.5 Boosts Kubernetes NetworkPolicy and Custom Networking

Kubernetes NetworkPolicy Support

From version 0.5.0, Kube-OVN implements full Kubernetes NetworkPolicy using OpenFlow flow‑table rules instead of iptables. It uses OVN PortGroup and AddressSet objects to group ports and addresses, which reduces the number of flow entries and minimizes performance impact.

Custom Container Interface and MTU

Starting with 0.5.0, the --iface flag can be passed to the Kube-OVN controller to select the host network interface used for inter‑node pod traffic. The MTU for the pod veth pair is automatically derived from the selected host interface; it can be overridden with the --mtu flag for fine‑grained tuning.

Automatic System Parameter Configuration

Kube-OVN now checks and sets essential Linux kernel parameters on startup, including net.ipv4.ip_forward=1, net.bridge.bridge-nf-call-iptables=1, and net.ipv4.conf.all.rp_filter=0. This eliminates common networking issues caused by mismatched host settings.

Default Gateway Calculation

The logical switch for the default network and the node switch automatically compute their gateway IP addresses, removing the need for manual configuration.

Additional CLI Options

Several previously hidden command‑line flags are now exposed (e.g., --default-logical-switch, --node-switch, --mtu, --iface). The complete list is documented in the Kube-OVN installation guide:

https://github.com/alauda/kube-ovn/blob/master/docs/install.md#more-configuration

Brief Overview of Kube-OVN

Kube-OVN is an open‑source CNI that brings OVN‑based networking to Kubernetes. It provides namespace‑to‑subnet binding, inter‑subnet firewall, static IP allocation, dynamic QoS, distributed/centralized gateways, and an embedded load balancer. The solution runs on Linux, Windows, and various hypervisors (KVM, XEN, Hyper‑V, DPDK).

Kube-OVN diagram
Kube-OVN diagram
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

Cloud NativeKubernetesNetworkingNetworkPolicyKube-OVNOVN
Cloud Native Technology Community
Written by

Cloud Native Technology Community

The Cloud Native Technology Community, part of the CNBPA Cloud Native Technology Practice Alliance, focuses on evangelizing cutting‑edge cloud‑native technologies and practical implementations. It shares in‑depth content, case studies, and event/meetup information on containers, Kubernetes, DevOps, Service Mesh, and other cloud‑native tech, along with updates from the CNBPA alliance.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.