Skip to content

Commit

Permalink
Inject sysctl changing nf_conntrack_max to 131072.
Browse files Browse the repository at this point in the history
This addresses
#18
kubernetes-sigs/kind#2240

Signed-off-by: Kurt Garloff <scs@garloff.de>
  • Loading branch information
garloff committed Aug 18, 2021
1 parent 4c2eedb commit 01b0dc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions terraform/mgmtcluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ runcmd:
- mv /tmp/daemon.json /etc/docker/daemon.json
- groupadd docker
- usermod -aG docker ${var.ssh_username}
- echo net.netfilter.nf_conntrack_max=131072 > /etc/sysctl.d/90-conntrack_max.conf
- sysctl -w -p /etc/sysctl.d/90-conntrack_max.conf
- apt -y install docker.io
EOF

Expand Down

0 comments on commit 01b0dc0

Please sign in to comment.