Skip to content

Commit

Permalink
Increase inotify limits by default
Browse files Browse the repository at this point in the history
This resolves lima-vm#1178.
  • Loading branch information
carlosonunez-vmw authored Nov 18, 2022
1 parent cd504a4 commit e7bbf98
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions examples/docker-rootful.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,14 @@ provision:
fi
export DEBIAN_FRONTEND=noninteractive
curl -fsSL https://get.docker.com | sh
- mode: system
script: |
#!/bin/bash
# Increase inotify limits to prevent nested Kubernetes control planes
# from crash looping.
echo 'fs.inotify.max_user_watches = 524288' >> /etc/sysctl.conf
echo 'fs.inotify.max_user_instances = 512' >> /etc/sysctl.conf
sysctl --system
probes:
- script: |
#!/bin/bash
Expand Down

0 comments on commit e7bbf98

Please sign in to comment.