Skip to content

Commit

Permalink
disable ipv6 in windows
Browse files Browse the repository at this point in the history
  • Loading branch information
luthermonson committed Aug 9, 2021
1 parent 14742c2 commit c199037
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion rke/k8s_windows_service_options.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ func loadK8sVersionWindowsServiceOptions() map[string]v3.KubernetesServicesOptio
return map[string]v3.KubernetesServicesOptions{
"v1.21": {
Kubelet: getWindowsKubeletOptions121(),
Kubeproxy: getWindowsKubeProxyOptions(),
Kubeproxy: getWindowsKubeProxyOptions121(),
},
"v1.20": {
Kubelet: getWindowsKubeletOptions116(),
Expand Down Expand Up @@ -89,6 +89,19 @@ func getWindowsKubeletOptions121() map[string]string {
return kubeletOptions
}

func getWindowsKubeProxyOptions121() map[string]string {
kubeProxyOptions := getKubeProxyOptions()

// use kernelspace proxy mode
kubeProxyOptions["proxy-mode"] = "kernelspace"
// disable Windows IPv6DualStack support, WinOverlay already defaults to true
kubeProxyOptions["feature-gates"] = "IPv6DualStack=false"
// disable Windows DSR support explicitly
kubeProxyOptions["enable-dsr"] = "false"

return kubeProxyOptions
}

func getWindowsKubeProxyOptions() map[string]string {
kubeProxyOptions := getKubeProxyOptions()

Expand Down

0 comments on commit c199037

Please sign in to comment.