Skip to content
This repository has been archived by the owner on Apr 7, 2020. It is now read-only.

Commit

Permalink
Merge pull request #500 from vpnachev/suse/reduce-mtu
Browse files Browse the repository at this point in the history
Use MTU of 1460 for all SUSE nodes
  • Loading branch information
vpnachev authored Dec 16, 2019
2 parents 4d3ae87 + 49e389d commit 64fce75
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 2 deletions.
2 changes: 0 additions & 2 deletions controllers/networking-calico/docs/usage-as-end-user.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@ In this document we are describing how this configuration looks like for Calico

Calico Typha is an optional component of Project Calico designed to offload the Kubernetes API server. The Typha daemon sits between the datastore (such as the Kubernetes API server which is the one used by Gardener managed Kubernetes) and many instances of Felix. Typha’s main purpose is to increase scale by reducing each node’s impact on the datastore. You can opt-out Typha via `.spec.networking.providerConfig.typha.enabled=false` of your Shoot manifest. By default the Typha is enabled.

> Note: On some cloud providers combined with some operating systems the Typha is not working properly. You may try to disable it in your Shoot manifest if you experience such issues.
## Example `NetworkingConfig` manifest

An example `NetworkingConfig` for the Calico extension looks as follows:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ write_files:
runcmd:
- "until zypper -q install -y docker wget socat jq nfs-client; [ $? -ne 7 ]; do sleep 1; done"
- systemctl daemon-reload
- ip link set dev eth0 mtu 1460
- grep -q '^MTU' /etc/sysconfig/network/ifcfg-eth0 && sed -i 's/^MTU.*/MTU=1460/' /etc/sysconfig/network/ifcfg-eth0 || echo 'MTU=1460' >> /etc/sysconfig/network/ifcfg-eth0
{{ if .Bootstrap -}}
- ln -s /usr/bin/docker /bin/docker
- ln -s /bin/ip /usr/bin/ip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ mkdir -p '{{ $unit.DropIns.Path }}'

until zypper -q install -y docker wget socat jq nfs-client; [ $? -ne 7 ]; do sleep 1; done
systemctl daemon-reload
ip link set dev eth0 mtu 1460
grep -q '^MTU' /etc/sysconfig/network/ifcfg-eth0 && sed -i 's/^MTU.*/MTU=1460/' /etc/sysconfig/network/ifcfg-eth0 || echo 'MTU=1460' >> /etc/sysconfig/network/ifcfg-eth0
{{ if .Bootstrap -}}
ln -s /usr/bin/docker /bin/docker
ln -s /bin/ip /usr/bin/ip
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ write_files:
runcmd:
- "until zypper -q install -y docker wget socat jq nfs-client; [ $? -ne 7 ]; do sleep 1; done"
- systemctl daemon-reload
- ip link set dev eth0 mtu 1460
- grep -q '^MTU' /etc/sysconfig/network/ifcfg-eth0 && sed -i 's/^MTU.*/MTU=1460/' /etc/sysconfig/network/ifcfg-eth0 || echo 'MTU=1460' >> /etc/sysconfig/network/ifcfg-eth0
- ln -s /usr/bin/docker /bin/docker
- ln -s /bin/ip /usr/bin/ip
- if [ ! -s /etc/hostname ]; then hostname > /etc/hostname; fi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ EOF

until zypper -q install -y docker wget socat jq nfs-client; [ $? -ne 7 ]; do sleep 1; done
systemctl daemon-reload
ip link set dev eth0 mtu 1460
grep -q '^MTU' /etc/sysconfig/network/ifcfg-eth0 && sed -i 's/^MTU.*/MTU=1460/' /etc/sysconfig/network/ifcfg-eth0 || echo 'MTU=1460' >> /etc/sysconfig/network/ifcfg-eth0
ln -s /usr/bin/docker /bin/docker
ln -s /bin/ip /usr/bin/ip
if [ ! -s /etc/hostname ]; then hostname > /etc/hostname; fi
Expand Down

0 comments on commit 64fce75

Please sign in to comment.