Skip to content

Commit

Permalink
fix networkd settings (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdn5126 authored Dec 7, 2023
1 parent e098953 commit b5cdeb6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ if cat /etc/*release | grep "al2023" > /dev/null 2>&1; then
sudo yum install -y iptables-nft

# Mask udev triggers installed by amazon-ec2-net-utils package
sudo touch /etc/udev/rules.d/99-cni-empty.rules
sudo touch /etc/udev/rules.d/99-vpc-policy-routes.rules

# Make networkd ignore foreign settings, else it may unexpectedly delete IP rules and routes added by CNI
sudo mkdir -p /etc/systemd/networkd.conf.d/
cat << EOF | sudo tee /etc/systemd/networkd.conf.d/80-release.conf
sudo mkdir -p /usr/lib/systemd/networkd.conf.d/
cat << EOF | sudo tee /usr/lib/systemd/networkd.conf.d/80-release.conf
# Do not clobber any routes or rules added by CNI.
[Network]
ManageForeignRoutes=no
Expand Down

0 comments on commit b5cdeb6

Please sign in to comment.