Skip to content

Commit

Permalink
Merge pull request #27682 from justinsb/fix_23395
Browse files Browse the repository at this point in the history
Automatic merge from submit-queue

AWS kube-up: set net.ipv4.neigh.default.gc_thresh1=0 to avoid ARP over-caching

This works around a linux kernel bug with overly aggressive caching of
ARP entries, which was causing problems when we reused IP addresses in
VPCs, for example with an ASG in a relatively small subnet.

See #23395 for more explanation.

Fixes #23395
  • Loading branch information
k8s-merge-robot authored Jun 19, 2016
2 parents 536ed28 + d62fe2a commit a911948
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions cluster/saltbase/salt/base.sls
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,20 @@ pkg-core:
- git
{% endif %}

# Fix ARP cache issues on AWS by setting net.ipv4.neigh.default.gc_thresh1=0
# See issue #23395
{% if grains.get('cloud') == 'aws' %}
# Work around Salt #18089: https://github.com/saltstack/salt/issues/18089
# (we also have to give it a different id from the same fix elsewhere)
99-salt-conf-with-a-different-id:
file.touch:
- name: /etc/sysctl.d/99-salt.conf

net.ipv4.neigh.default.gc_thresh1:
sysctl.present:
- value: 0
{% endif %}

/usr/local/share/doc/kubernetes:
file.directory:
- user: root
Expand Down

0 comments on commit a911948

Please sign in to comment.