diff --git a/scripts/install-worker.sh b/scripts/install-worker.sh index cf1008410..6618cf958 100644 --- a/scripts/install-worker.sh +++ b/scripts/install-worker.sh @@ -81,9 +81,12 @@ sudo yum install -y \ # Remove any old kernel versions. `--count=1` here means "only leave 1 kernel version installed" sudo package-cleanup --oldkernels --count=1 -y -# Remove the ec2-net-utils package, if it's installed. This package interferes with the route setup on the instance. +# Remove the ec2-net-utils package if it is installed. This package interferes with the route setup on the instance. if yum list installed | grep ec2-net-utils; then sudo yum remove ec2-net-utils -y -q; fi +# Remove the NetworkManager-cloud-setup package if it is installed. This package interferes with ip rules installed by AWS VPC CNI. +if yum list installed | grep NetworkManager-cloud-setup; then sudo yum remove NetworkManager-cloud-setup -y -q; fi + ################################################################################ ### Time ####################################################################### ################################################################################