File tree 3 files changed +27
-1
lines changed
3 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,15 @@ provision:
54
54
fi
55
55
export DEBIAN_FRONTEND=noninteractive
56
56
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
+ set -eux -o pipefail
63
+ echo 'fs.inotify.max_user_watches = 524288' >> /etc/sysctl.conf
64
+ echo 'fs.inotify.max_user_instances = 512' >> /etc/sysctl.conf
65
+ sysctl --system
57
66
probes :
58
67
- script : |
59
68
#!/bin/bash
Original file line number Diff line number Diff line change @@ -56,6 +56,15 @@ provision:
56
56
systemctl --user start dbus
57
57
dockerd-rootless-setuptool.sh install
58
58
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
59
68
probes :
60
69
- script : |
61
70
#!/bin/bash
Original file line number Diff line number Diff line change @@ -41,7 +41,15 @@ provision:
41
41
script : |
42
42
#!/bin/sh
43
43
curl -sfL https://get.k3s.io | sh -
44
-
44
+ - mode : system
45
+ script : |
46
+ #!/bin/bash
47
+ # Increase inotify limits to prevent nested Kubernetes control planes
48
+ # from crash looping.
49
+ set -eux -o pipefail
50
+ echo 'fs.inotify.max_user_watches = 524288' >> /etc/sysctl.conf
51
+ echo 'fs.inotify.max_user_instances = 512' >> /etc/sysctl.conf
52
+ sysctl --system
45
53
probes :
46
54
- script : |
47
55
#!/bin/bash
You can’t perform that action at this time.
0 commit comments