k8snetworkplumbingwg / ovs-cni

Open vSwitch CNI plugin
Apache License 2.0
224 stars 71 forks source link

Does this cni support ipv6? #278

Open xfyan0408 opened 1 year ago

xfyan0408 commented 1 year ago

Hi,I would like to know whether this plugin supports IPv6? If IPv6 needs to be configured, do I need to configure a K8s cluster that supports IPv6 first? Or it's ok for K8s clusters just support IPv4 without additional IPv6 configuration? Thanks a lot

phoracek commented 1 year ago

Hello @xfyan0408. I haven't tested it, but it may just work. OVS CNI delegates IP config to containernetworking/plugins project which should cover IPv6 too: https://github.com/k8snetworkplumbingwg/ovs-cni/blob/main/pkg/plugin/plugin.go#L385

You do not need to configure your Kubernetes deployment for IPv6 or dual stack. Multus and OVS CNI work on the side. So if the network infrastructure you connect your OVS bridge to supports IPv6, there should be no additional configuration needed.

Note that OVS CNI on its own does not handle IP address management. You need to delegate that to another CNI. Check out the demo: https://github.com/k8snetworkplumbingwg/ovs-cni/blob/2753298ba54845fc572ac560787a11f16532181c/docs/demo.md#configure-ip-address