Skip to content

Commit b24cc83

Browse files
increase inotify limits for docker VMs
1 parent 7fec41a commit b24cc83

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: examples/docker.yaml

+9
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,15 @@ provision:
5656
systemctl --user start dbus
5757
dockerd-rootless-setuptool.sh install
5858
docker context use rootless
59+
- mode: system
60+
script: |
61+
#!/bin/bash
62+
# Increase inotify limits to prevent nested Kubernetes control planes
63+
# from crash looping.
64+
set -eux -o pipefail
65+
echo 'fs.inotify.max_user_watches = 524288' >> /etc/sysctl.conf
66+
echo 'fs.inotify.max_user_instances = 512' >> /etc/sysctl.conf
67+
sysctl --system
5968
probes:
6069
- script: |
6170
#!/bin/bash

0 commit comments

Comments
 (0)