Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove unneeded network related sysctls
  • Loading branch information
hakman committed Sep 22, 2021
1 parent a14f822 commit ce08ec6
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions nodeup/pkg/model/sysctls.go
Expand Up @@ -150,18 +150,6 @@ func (b *SysctlBuilder) Build(c *fi.ModelBuilderContext) error {
"")
}

if b.Cluster.Spec.IsIPv6Only() {
sysctls = append(sysctls,
"net.ipv6.conf.all.forwarding=1",
"net.ipv6.conf.all.accept_ra=2",
"")
} else {
sysctls = append(sysctls,
"# Prevent docker from changing iptables: https://github.com/kubernetes/kubernetes/issues/40182",
"net.ipv4.ip_forward=1",
"")
}

if params := b.NodeupConfig.SysctlParameters; len(params) > 0 {
sysctls = append(sysctls,
"# Custom sysctl parameters from instance group spec",
Expand Down

0 comments on commit ce08ec6

Please sign in to comment.