Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

How to bring up the Kubernetes dual stack support?

Prerequisites

  • You must be using Kubernetes 1.16 (alpha feature) or later (1.20 beta feature).
  • IPv6 and IPv6 forwarding must be enabled (sysctl -w net.ipv6.conf.all.disable_ipv6=0, sysctl -w net.ipv6.conf.all.forwarding=1)
  • All the nodes must have an IPv6 address and they should be able to reach others over an IPv6 connection.

    Tip: IPv6 address can be manually assigned to interface via adding in netplan configuration files (/etc/netplan/50-vagrant.yaml) IPv6 address to list of addresses and setting in interface section:
    accept-ra: no

    After that netplan apply needs to be called.

Options to add:

  • kube-controller-manager
    • –-feature-gates="IPv6DualStack=true"
    • –-cluster-cidr=<IPv4 CIDR>,<IPv6 CIDR>
    • –-service-cluster-ip-range=<IPv4 CIDR>,<IPv6 CIDR>
  • kubelet
    • –-feature-gates="IPv6DualStack=true"
  • kube-proxy
    • –-proxy-mode=ipvs
    • –-cluster-cidrs=<IPv4 CIDR>,<IPv6 CIDR>
    • –-feature-gates="IPv6DualStack=true"
  • No labels