Dual-stack Networking

Note: Dual stack networking setup requires that you configure Calico or a custom CNI as the CNI provider.

Use the following k0s.yaml as a template to enable dual-stack networking. This configuration will set up bundled calico CNI, enable feature gates for the Kubernetes components, and set up kubernetes-controller-manager.

  1. spec:
  2. network:
  3. podCIDR: "10.244.0.0/16"
  4. serviceCIDR: "10.96.0.0/12"
  5. provider: calico
  6. calico:
  7. mode: "bird"
  8. dualStack:
  9. enabled: true
  10. IPv6podCIDR: "fd00::/108"
  11. IPv6serviceCIDR: "fd01::/108"

CNI Settings: Calico

For cross-pod connectivity, use BIRD for the backend. Calico does not support tunneling for the IPv6, and thus VXLAN and IPIP backends do not work.

Note: In any Calico mode other than cross-pod, the pods can only reach pods on the same node.

CNI Settings: External CNI

Although the k0s.yaml dualStack section enables all of the neccessary feature gates for the Kubernetes components, for use with an external CNI it must be set up to support IPv6.

Additional Resources