Skip to content

Commit f70f1fd

Browse files
committed
Add splunk user to docker group and increase inotify limits
1 parent 297fac8 commit f70f1fd

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

local-hosting/proxmox/ubuntu-cloud.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,19 @@ runcmd:
203203
204204
# Deploy Splunk secrets
205205
- /usr/local/bin/kubectl apply -f /tmp/workshop-secrets.yaml
206+
207+
# Add splunk user to docker group
208+
- usermod -aG docker splunk
209+
210+
# Increase inotify limits for k3s
211+
- sysctl -w fs.inotify.max_user_watches=524288
212+
- sysctl -w fs.inotify.max_user_instances=8192
206213
EOF
207214

208215
#qm destroy $VMID >/dev/null
209216
rm -f jammy-server-cloudimg-amd64.img >/dev/null
210217
wget -q https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
211-
qemu-img resize jammy-server-cloudimg-amd64.img 20G >/dev/null
218+
qemu-img resize jammy-server-cloudimg-amd64.img 40G >/dev/null
212219
qm create $VMID --name $HOSTNAME --ostype l26 \
213220
--memory 8192 --balloon 0 \
214221
--agent 1 \

0 commit comments

Comments
 (0)