issue kubectl logs on k3d Ubuntu 22.04
So we can add this file# Problem
On k3d cluster Eolebase/Ubuntu 22.04, kubectl logs
command can failed : \
failed to create fsnotify watcher: too many open files
Solution
With these settings, it's OK : \
sysctl -w fs.inotify.max_user_instances=1024
sysctl -w fs.inotify.max_user_watches=1000000
So we can add this when building image : \
cat <<EOF > /etc/sysctl.d/99-k3d.conf
fs.inotify.max_user_instances = 1024
fs.inotify.max_user_watches = 1000000
EOF