mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Fix default ipv6 cidr (#5467)
Signed-off-by: Manuel Buil <mbuil@suse.com>
This commit is contained in:
parent
3307d53f8f
commit
6a8de31a92
@ -238,7 +238,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
|
|||||||
if len(cmds.ServerConfig.ClusterCIDR) == 0 {
|
if len(cmds.ServerConfig.ClusterCIDR) == 0 {
|
||||||
clusterCIDR := "10.42.0.0/16"
|
clusterCIDR := "10.42.0.0/16"
|
||||||
if IPv6only {
|
if IPv6only {
|
||||||
clusterCIDR = "fd:42::/56"
|
clusterCIDR = "fd00:42::/56"
|
||||||
}
|
}
|
||||||
cmds.ServerConfig.ClusterCIDR.Set(clusterCIDR)
|
cmds.ServerConfig.ClusterCIDR.Set(clusterCIDR)
|
||||||
}
|
}
|
||||||
@ -264,7 +264,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
|
|||||||
if len(cmds.ServerConfig.ServiceCIDR) == 0 {
|
if len(cmds.ServerConfig.ServiceCIDR) == 0 {
|
||||||
serviceCIDR := "10.43.0.0/16"
|
serviceCIDR := "10.43.0.0/16"
|
||||||
if IPv6only {
|
if IPv6only {
|
||||||
serviceCIDR = "fd:43::/112"
|
serviceCIDR = "fd00:43::/112"
|
||||||
}
|
}
|
||||||
cmds.ServerConfig.ServiceCIDR.Set(serviceCIDR)
|
cmds.ServerConfig.ServiceCIDR.Set(serviceCIDR)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user