Unverified Commit 6a8de31a authored by Manuel Buil's avatar Manuel Buil Committed by GitHub

Fix default ipv6 cidr (#5467)

Signed-off-by: 's avatarManuel Buil <mbuil@suse.com>
parent 3307d53f
......@@ -238,7 +238,7 @@ func run(app *cli.Context, cfg *cmds.Server, leaderControllers server.CustomCont
if len(cmds.ServerConfig.ClusterCIDR) == 0 {
clusterCIDR := "10.42.0.0/16"
if IPv6only {
clusterCIDR = "fd:42::/56"
clusterCIDR = "fd00:42::/56"
}
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 {
serviceCIDR := "10.43.0.0/16"
if IPv6only {
serviceCIDR = "fd:43::/112"
serviceCIDR = "fd00:43::/112"
}
cmds.ServerConfig.ServiceCIDR.Set(serviceCIDR)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment