IPv6 Subnet
Kube-OVN supports the coexistence of IPv4 and IPv6 subnets in a cluster. However, due to some restrictions of the Kubernetes control plane, if the pod network protocol is inconsistent with the protocol of the Kubernetes control plane, functions such as service discovery cannot work properly. Before using an IPv6 subnet, you are advised to configure the protocol of the Kubernetes control plane to IPv6 to prevent network problems.
The following is an example of creating an IPv6 subnet.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | cat <<EOF | kubectl create -f - apiVersion: kubeovn.io/v1 kind: Subnet metadata: name: ipv6 spec: cidrBlock: 2001:4860::/32 excludeIps: - 2001:4860::1 gateway: 2001:4860::1 gatewayType: distributed namespaces: [ls2] natOutgoing: false private: false protocol: "IPv6" EOF |
Parent topic: Subnet Management