Use `ipFamilyPolicy: RequireDualStack` for dual-stack kube-dns (#8984)

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
(cherry picked from commit 8d2c40cdac)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
pull/9336/head v1.28.6+k3s1
Aofei Sheng 11 months ago committed by Brad Davidson
parent c236c9ff77
commit 39a0001575

@ -274,9 +274,9 @@ func stageFiles(ctx context.Context, sc *Context, controlConfig *config.Control)
}
dataDir = filepath.Join(controlConfig.DataDir, "manifests")
dnsIPFamilyPolicy := "PreferDualStack"
if len(controlConfig.ClusterDNSs) == 1 {
dnsIPFamilyPolicy = "SingleStack"
dnsIPFamilyPolicy := "SingleStack"
if len(controlConfig.ClusterDNSs) > 1 {
dnsIPFamilyPolicy = "RequireDualStack"
}
templateVars := map[string]string{

Loading…
Cancel
Save