adamant-kite-43734
02/09/2024, 3:55 PMgentle-finland-85533
02/09/2024, 4:05 PMadorable-orange-51420
02/09/2024, 4:06 PMkubectl run busybox -i --tty --image=busybox --restart=Never --rm -- sh -c 'ulimit -a'
I still get 1024adorable-orange-51420
02/09/2024, 4:07 PMdocker run -it --rm bash:4.4 -c 'ulimit -n'
outputs
65535gentle-finland-85533
02/09/2024, 4:12 PMadorable-orange-51420
02/09/2024, 4:13 PMadorable-orange-51420
02/09/2024, 4:17 PMrough-farmer-49135
02/09/2024, 4:20 PMadorable-orange-51420
02/09/2024, 4:22 PMrough-farmer-49135
02/09/2024, 4:23 PMrough-farmer-49135
02/09/2024, 4:24 PMrough-farmer-49135
02/09/2024, 4:25 PMadorable-orange-51420
02/09/2024, 4:27 PMrough-farmer-49135
02/09/2024, 4:27 PM-i $REBUILD_K3S_CONTAINER_NAME
when creating your cluster.rough-farmer-49135
02/09/2024, 4:27 PMrough-farmer-49135
02/09/2024, 4:27 PMrough-farmer-49135
02/09/2024, 4:28 PMrough-farmer-49135
02/09/2024, 4:28 PMadorable-orange-51420
02/09/2024, 4:29 PM58705cfb4038 rancher/k3s:v1.29.0-k3s1 "/bin/k3d-entrypoint…" 20 minutes ago Up 20 minutes k3d-local-server-0
❯ docker exec -it 58705cfb4038 sh
/ # ulimit -n
1024rough-farmer-49135
02/09/2024, 4:31 PMadorable-orange-51420
02/09/2024, 4:35 PMadorable-orange-51420
02/09/2024, 4:36 PM--runtime-ulimit
which ive set, but that has no effectwide-garage-9465
02/09/2024, 4:39 PMtoo many open files
in pods running in your k3d cluster?adorable-orange-51420
02/09/2024, 4:39 PMrough-farmer-49135
02/09/2024, 4:40 PMwide-garage-9465
02/09/2024, 4:44 PMprivileged
mode, so they're not constrained in any way to modify their system settings
2. k3d's --runtime-ulimit
flag is basically the equivalent to Docker's --ulimit
flag (see blog)
3. The too many open files
issue is often solved on the host system by increasing the limits with sysctl
(see some other issues)wide-garage-9465
02/09/2024, 4:45 PMrough-farmer-49135
02/09/2024, 4:46 PMcat /proc/${PID}/limits
to check the limits of the different processes and that'd show you where it changes if you're trying to narrow down where. Should be that process' parent or maybe the process setting it for itself.