diff --git a/parts/k8s/cloud-init/artifacts/cse_customcloud.sh b/parts/k8s/cloud-init/artifacts/cse_customcloud.sh index e66b0c128..d1dd35c71 100755 --- a/parts/k8s/cloud-init/artifacts/cse_customcloud.sh +++ b/parts/k8s/cloud-init/artifacts/cse_customcloud.sh @@ -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 diff --git a/pkg/engine/templates_generated.go b/pkg/engine/templates_generated.go index a45813d1e..04af051ae 100644 --- a/pkg/engine/templates_generated.go +++ b/pkg/engine/templates_generated.go @@ -17438,14 +17438,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