Skip to content

Commit

Permalink
INSTALL: Document kube-proxy settings
Browse files Browse the repository at this point in the history
The kube-proxy configuration must be updated to prevent it from
overriding Thar's sysctl change to nf_conntrack_max. Document the steps
to update the configuration in the install steps.

Fixes #371 for kernel settings.

Signed-off-by: Samuel Mendoza-Jonas <[email protected]>
  • Loading branch information
sam-aws committed Dec 6, 2019
1 parent da6ce03 commit 2b9f6a2
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions INSTALL.md
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,26 @@ eksctl-thar-nodegroup-ng-IDENTIFIER-NodeInstanceProfile-IDENTIFIER

Note this down as the INSTANCE_PROFILE_NAME for the final launch command.

## kube-proxy settings
By default `kube-proxy` will set the `nf_conntrack_max` kernel parameter to a default value that may differ from what Thar originally sets at boot.
If you prefer to keep Thar's [default setting](packages/release/release-sysctl.conf), edit the kube-proxy configuration details with:

```
kubectl edit -n kube-system daemonset kube-proxy
```

Add `--conntrack-max-per-core` and `--conntrack-min` to the kube-proxy arguments like so (0 implies no change):
```
containers:
- command:
- kube-proxy
- --v=2
- --config=/var/lib/kube-proxy-config/config
- --conntrack-max-per-core 0
- --conntrack-min 0
```

## Final launch details

For the instance to be able to communicate with the EKS cluster control plane and other worker nodes, we need to make sure the instance is launched with the right security groups.
Expand Down

0 comments on commit 2b9f6a2

Please sign in to comment.