Fix default ipv6 cidr (#5467)

Signed-off-by: Manuel Buil <mbuil@suse.com>
This commit is contained in:
Manuel Buil 2022-04-20 17:41:41 +02:00 committed by GitHub
parent 3307d53f8f
commit 6a8de31a92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
} }