Skip to content

Commit

Permalink
Set containerd LimitNOFILE to recommended value (#1535)
Browse files Browse the repository at this point in the history
  • Loading branch information
cartermckinnon authored Dec 7, 2023
1 parent aaf1aa7 commit e098953
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/install-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,12 @@ cat << EOF | sudo tee /etc/systemd/system/containerd.service.d/10-compat-symlink
ExecStartPre=/bin/ln -sf /run/containerd/containerd.sock /run/dockershim.sock
EOF

cat << EOF | sudo tee /etc/systemd/system/containerd.service.d/20-limitnofile.conf
[Service]
# https://github.com/containerd/containerd/pull/8924
LimitNOFILE=1024:524288
EOF

cat << EOF | sudo tee -a /etc/modules-load.d/containerd.conf
overlay
br_netfilter
Expand Down

0 comments on commit e098953

Please sign in to comment.