Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 832 Bytes

enable_ip_ip.rst

File metadata and controls

25 lines (16 loc) · 832 Bytes

Enable IP-in-IP encapsulation

By default Calico in MetalK8s is configured to use IP-in-IP encapsulation only for cross-subnet communication.

IP-in-IP is needed for any network which enforces source and destination fields of IP packets to correspond to the MAC address(es).

To always use IP-in-IP encapsulation run the following command:

$ kubectl --kubeconfig /etc/kubernetes/admin.conf \
  patch ippool default-ipv4-ippool --type=merge \
  --patch '{"spec": {"ipipMode": "Always"}}'

For more details refer to IP-in-IP Calico configuration.