From 7e5a2a1b2b9fafb6237659fa69a9767c08d2cb01 Mon Sep 17 00:00:00 2001 From: Daniel Fernandes Martins Date: Wed, 21 Jun 2017 18:52:16 -0300 Subject: [PATCH] Removed unused sysctl override Kube-proxy, by default, automatically sets `nf_conntrack_max=131072` when it starts, so it's useless to set this value in some systemd unit. Closes #708 --- .../config/templates/cloud-config-controller | 16 ---------------- .../config/templates/cloud-config-worker | 17 ----------------- 2 files changed, 33 deletions(-) diff --git a/core/controlplane/config/templates/cloud-config-controller b/core/controlplane/config/templates/cloud-config-controller index 554c98804..1b130aebd 100644 --- a/core/controlplane/config/templates/cloud-config-controller +++ b/core/controlplane/config/templates/cloud-config-controller @@ -38,14 +38,6 @@ coreos: ExecStartPre=/opt/bin/cfn-etcd-environment ExecStart=/usr/bin/mv -f /var/run/coreos/etcd-environment /etc/etcd-environment -{{if .UseCalico }} - # https://github.com/coreos/docs/blob/5d7b1cccb8286185275b07db1495828be9fdb0ea/os/other-settings.md#tuning-sysctl-parameters - - name: systemd-modules-load.service - command: restart - - name: systemd-sysctl.service - command: restart -{{ end }} - {{if .Experimental.AwsEnvironment.Enabled}} - name: set-aws-environment.service enable: true @@ -2158,14 +2150,6 @@ write_files: } } - # http://docs.projectcalico.org/v2.0/usage/configuration/ - - path: /etc/modules-load.d/nf.conf - content: | - nf_conntrack - - path: /etc/sysctl.d/nf.conf - content: | - net.netfilter.nf_conntrack_max=1000000 - {{ end }} {{if .Experimental.Authentication.Webhook.Enabled}} diff --git a/core/controlplane/config/templates/cloud-config-worker b/core/controlplane/config/templates/cloud-config-worker index 8f6f500e4..3c9cd71a0 100644 --- a/core/controlplane/config/templates/cloud-config-worker +++ b/core/controlplane/config/templates/cloud-config-worker @@ -249,14 +249,6 @@ coreos: RequiredBy=rkt-api.service {{ end }} -{{if .UseCalico }} - # https://github.com/coreos/docs/blob/5d7b1cccb8286185275b07db1495828be9fdb0ea/os/other-settings.md#tuning-sysctl-parameters - - name: systemd-modules-load.service - command: restart - - name: systemd-sysctl.service - command: restart -{{ end }} - {{if .AwsEnvironment.Enabled}} - name: set-aws-environment.service enable: true @@ -853,15 +845,6 @@ write_files: } } } - - # http://docs.projectcalico.org/v2.0/usage/configuration/ - - path: /etc/modules-load.d/nf.conf - content: | - nf_conntrack - - path: /etc/sysctl.d/nf.conf - content: | - net.netfilter.nf_conntrack_max=1000000 - {{ end }} {{ if and .Experimental.TLSBootstrap.Enabled .AssetsConfig.HasTLSBootstrapToken }}