Skip to content

Commit

Permalink
Use ipFamilyPolicy: RequireDualStack for dual-stack kube-dns (#8984)
Browse files Browse the repository at this point in the history
Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
(cherry picked from commit 8d2c40c)
Signed-off-by: Brad Davidson <brad.davidson@rancher.com>
  • Loading branch information
aofei authored and brandond committed Jan 18, 2024
1 parent c236c9f commit 39a0001
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/server/server.go
Expand Up @@ -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{
Expand Down

0 comments on commit 39a0001

Please sign in to comment.