mirror of https://github.com/k3s-io/k3s
Use `ipFamilyPolicy: RequireDualStack` for dual-stack kube-dns (#8984)
Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>pull/9025/head
parent
ac8fe8de2b
commit
8d2c40cdac
|
@ -274,9 +274,9 @@ func stageFiles(ctx context.Context, sc *Context, controlConfig *config.Control)
|
||||||
}
|
}
|
||||||
dataDir = filepath.Join(controlConfig.DataDir, "manifests")
|
dataDir = filepath.Join(controlConfig.DataDir, "manifests")
|
||||||
|
|
||||||
dnsIPFamilyPolicy := "PreferDualStack"
|
dnsIPFamilyPolicy := "SingleStack"
|
||||||
if len(controlConfig.ClusterDNSs) == 1 {
|
if len(controlConfig.ClusterDNSs) > 1 {
|
||||||
dnsIPFamilyPolicy = "SingleStack"
|
dnsIPFamilyPolicy = "RequireDualStack"
|
||||||
}
|
}
|
||||||
|
|
||||||
templateVars := map[string]string{
|
templateVars := map[string]string{
|
||||||
|
|
Loading…
Reference in New Issue