mirror of
https://github.com/k3s-io/k3s.git
synced 2024-06-07 19:41:36 +00:00
Use ipFamilyPolicy: RequireDualStack
for dual-stack kube-dns (#8984)
Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
This commit is contained in:
parent
ac8fe8de2b
commit
8d2c40cdac
@ -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…
Reference in New Issue
Block a user