Skip to content

Commit e7bbf98

Browse files
Increase inotify limits by default
This resolves #1178.
1 parent cd504a4 commit e7bbf98

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: examples/docker-rootful.yaml

+8
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,14 @@ provision:
5454
fi
5555
export DEBIAN_FRONTEND=noninteractive
5656
curl -fsSL https://get.docker.com | sh
57+
- mode: system
58+
script: |
59+
#!/bin/bash
60+
# Increase inotify limits to prevent nested Kubernetes control planes
61+
# from crash looping.
62+
echo 'fs.inotify.max_user_watches = 524288' >> /etc/sysctl.conf
63+
echo 'fs.inotify.max_user_instances = 512' >> /etc/sysctl.conf
64+
sysctl --system
5765
probes:
5866
- script: |
5967
#!/bin/bash

0 commit comments

Comments
 (0)