Merge pull request #4098 from manuelbuil/enable_sysctl_inheritance

Enable the inheritance of sysctl network settings for ipv6
This commit is contained in:
Michal Rostecki 2021-09-28 15:32:52 +02:00 committed by GitHub
commit 4c75122585
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -50,6 +50,7 @@ func Configure(enableIPv6 bool, config *kubeproxyconfig.KubeProxyConntrackConfig
sysctls["net/ipv6/conf/all/forwarding"] = 1 sysctls["net/ipv6/conf/all/forwarding"] = 1
sysctls["net/ipv6/conf/default/forwarding"] = 1 sysctls["net/ipv6/conf/default/forwarding"] = 1
sysctls["net/bridge/bridge-nf-call-ip6tables"] = 1 sysctls["net/bridge/bridge-nf-call-ip6tables"] = 1
sysctls["net/core/devconf_inherit_init_net"] = 1
} }
if conntrackMax := getConntrackMax(config); conntrackMax > 0 { if conntrackMax := getConntrackMax(config); conntrackMax > 0 {