Skip to content

Commit 0ff03e9

Browse files
increase inotify limits for k3s VMs
1 parent b24cc83 commit 0ff03e9

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Diff for: examples/k3s.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,15 @@ provision:
4141
script: |
4242
#!/bin/sh
4343
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
4553
probes:
4654
- script: |
4755
#!/bin/bash

0 commit comments

Comments
 (0)