Skip to content

Commit

Permalink
add nat_outgoing_ipv6 to calico defaults and docs (kubernetes-sigs#10866
Browse files Browse the repository at this point in the history
)
  • Loading branch information
anders-elastisys authored and pedromcpedro committed May 8, 2024
1 parent fd6fcc0 commit dddb89e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
10 changes: 9 additions & 1 deletion docs/calico.md
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,14 @@ calico_node_livenessprobe_timeout: 10
calico_node_readinessprobe_timeout: 10
```

### Optional : Enable NAT with IPv6

To allow outgoing IPv6 traffic going from pods to the Internet, enable the following:

```yml
nat_outgoing_ipv6: true # NAT outgoing ipv6 (default value: false).
```

## Config encapsulation for cross server traffic

Calico supports two types of encapsulation: [VXLAN and IP in IP](https://docs.projectcalico.org/v3.11/networking/vxlan-ipip). VXLAN is the more mature implementation and enabled by default, please check your environment if you need *IP in IP* encapsulation.
Expand All @@ -235,7 +243,7 @@ If you are running your cluster with the default calico settings and are upgradi
* perform a manual migration to vxlan before upgrading kubespray (see migrating from IP in IP to VXLAN below)
* pin the pre-2.19 settings in your ansible inventory (see IP in IP mode settings below)

**Note:**: Vxlan in ipv6 only supported when kernel >= 3.12. So if your kernel version < 3.12, Please don't set `calico_vxlan_mode_ipv6: vxlanAlways`. More details see [#Issue 6877](https://github.com/projectcalico/calico/issues/6877).
**Note:**: Vxlan in ipv6 only supported when kernel >= 3.12. So if your kernel version < 3.12, Please don't set `calico_vxlan_mode_ipv6: Always`. More details see [#Issue 6877](https://github.com/projectcalico/calico/issues/6877).

### IP in IP mode

Expand Down
1 change: 1 addition & 0 deletions inventory/sample/group_vars/k8s_cluster/k8s-net-calico.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ calico_cni_name: k8s-pod-network

# Enables Internet connectivity from containers
# nat_outgoing: true
# nat_outgoing_ipv6: false

# Enables Calico CNI "host-local" IPAM plugin
# calico_ipam_host_local: true
Expand Down
1 change: 1 addition & 0 deletions roles/network_plugin/calico_defaults/defaults/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ calico_cni_name: k8s-pod-network

# Enables Internet connectivity from containers
nat_outgoing: true
nat_outgoing_ipv6: false

# add default ippool name
calico_pool_name: "default-pool"
Expand Down

0 comments on commit dddb89e

Please sign in to comment.