Skip to content

Commit

Permalink
chore: set MTU to 1500 for the kubenet CNI (#192)
Browse files Browse the repository at this point in the history
  • Loading branch information
honcao committed Oct 5, 2023
1 parent 27a359a commit 4106fd5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions parts/k8s/cloud-init/artifacts/cse_customcloud.sh
Original file line number Diff line number Diff line change
Expand Up @@ -90,14 +90,6 @@ configureK8sCustomCloud() {
timeout 10 nc -vz ${LOGIN_ENDPOINT} 443 \
&& echo "login endpoint reachable: ${LOGIN_ENDPOINT}" \
|| echo "error: login endpoint not reachable: ${LOGIN_ENDPOINT}"

{{- if not IsAzureCNI}}
# Decrease eth0 MTU to mitigate Azure Stack's NRP issue
echo "iface eth0 inet dhcp" | sudo tee -a /etc/network/interfaces
echo " post-up /sbin/ifconfig eth0 mtu 1350" | sudo tee -a /etc/network/interfaces
ifconfig eth0 mtu 1350
{{end}}

{{else}}
ensureCustomCloudRootCertificates
ensureCustomCloudSourcesList
Expand Down
8 changes: 0 additions & 8 deletions pkg/engine/templates_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 4106fd5

Please sign in to comment.