mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 20:48:11 +00:00
Update network installation doc
This commit is contained in:
@@ -79,10 +79,7 @@ Dual-stack is supported on k3s v1.21 or above.
|
||||
To enable dual-stack in k3s, you must provide valid dual-stack `cluster-cidr` and `service-cidr`, and set `disable-network-policy` on all server nodes. Both servers and agents must provide valid dual-stack `node-ip` settings. Node address auto-detection and network policy enforcement are not supported on dual-stack clusters when using the default flannel CNI. Besides, only vxlan backend is supported at the moment. This is an example of a valid configuration:
|
||||
|
||||
```
|
||||
node-ip: 10.0.10.7,2a05:d012:c6f:4611:5c2:5602:eed2:898c
|
||||
cluster-cidr: 10.42.0.0/16,2001:cafe:42:0::/56
|
||||
service-cidr: 10.43.0.0/16,2001:cafe:42:1::/112
|
||||
disable-network-policy: true
|
||||
k3s server --node-ip 10.0.10.7,2a05:d012:c6f:4611:5c2:5602:eed2:898c --cluster-cidr 10.42.0.0/16,2001:cafe:42:0::/56 --service-cidr 10.43.0.0/16,2001:cafe:42:1::/112 --disable-network-policy
|
||||
```
|
||||
|
||||
Note that you can choose whatever `cluster-cidr` and `service-cidr` value, however the `node-ip` values must correspond to the ip addresses of your main interface. Remember to allow ipv6 traffic if you are deploying in a public cloud.
|
||||
@@ -91,15 +88,10 @@ If you are using a custom cni plugin, i.e. a cni plugin different from flannel,
|
||||
|
||||
### IPv6 only installation
|
||||
|
||||
IPv6 only setup is supported on k3s v1.22 or above.
|
||||
|
||||
IPv6 only setup requires a similar setup as dual-stack where you must provide a valid IPv6 `node-ip` on both servers and agents. This is an example of a valid configuration:
|
||||
IPv6 only setup is supported on k3s v1.22 or above. As in dual-stack operation, IPv6 node addresses cannot be auto-detected; all nodes must have an explicitly configured IPv6 `node-ip`. This is an example of a valid configuration:
|
||||
|
||||
```
|
||||
node-ip: 2a05:d012:c6f:4611:5c2:5602:eed2:898c
|
||||
cluster-cidr: 2001:cafe:42:0::/56
|
||||
service-cidr: 2001:cafe:42:1::/112
|
||||
disable-network-policy: true
|
||||
k3s server --node-ip 2a05:d012:c6f:4611:5c2:5602:eed2:898c --cluster-cidr 2001:cafe:42:0::/56 --service-cidr 2001:cafe:42:1::/112 --disable-network-policy
|
||||
```
|
||||
|
||||
Note that you can specify only one IPv6 `cluster-cidr` value.
|
||||
|
||||
Reference in New Issue
Block a user