Deploy Kube-OVN on Talos Linux¶
Talos Linux is a modern Linux distribution built for Kubernetes.
Note
Before deploying Kube-OVN, you MUST ensure that there is no CNI installed in the Talos cluster:
cluster:
network:
cni:
# "none" indicates that Talos will not manage any CNI installation.
name: none
Deploy Kube-OVN via Helm Chart¶
You can deploy Kube-OVN on Talos Linux clusters with the following command:
helm install kube-ovn kubeovn/kube-ovn --wait \
-n kube-system \
--version v1.13.11 \
--set OVN_DIR=/var/lib/ovn \
--set OPENVSWITCH_DIR=/var/lib/openvswitch \
--set DISABLE_MODULES_MANAGEMENT=true \
--set cni_conf.MOUNT_LOCAL_BIN_DIR=false
If you want to use underlay as the default network, you need to pass the relevant chart values. Here is an example:
helm install kubeovn kubeovn/kube-ovn --wait \
-n kube-system \
--version v1.13.11 \
--set OVN_DIR=/var/lib/ovn \
--set OPENVSWITCH_DIR=/var/lib/openvswitch \
--set DISABLE_MODULES_MANAGEMENT=true \
--set cni_conf.MOUNT_LOCAL_BIN_DIR=false \
--set networking.NETWORK_TYPE=vlan \
--set networking.vlan.VLAN_INTERFACE_NAME=enp0s5f1 \
--set networking.vlan.VLAN_ID=0 \
--set networking.NET_STACK=ipv4 \
--set-json networking.EXCLUDE_IPS='"172.99.99.11..172.99.99.99"' \
--set-json ipv4.POD_CIDR='"172.99.99.0/24"' \
--set-json ipv4.POD_GATEWAY='"172.99.99.1"'
Note
The network interface used by the default underlay network need to be ignored in the Talos machine configuration before deploying Kube-OVN. Here is an example:
machine:
network:
interfaces:
- interface: enp0s5f1
ignore: true