The inotify config values were raised in T429347: [lima-kilo] increase the number of inotify watches, but I noticed they get lost after the lima vm is restarted:
fran@lima-kilo:~/$ sysctl fs.inotify.max_user_instances fs.inotify.max_user_watches fs.inotify.max_queued_events fs.inotify.max_user_instances = 128 fs.inotify.max_user_watches = 125976 fs.inotify.max_queued_events = 16384
This leads to the same issue when watching logs in k9s:
stream closed EOF for alerts-api/alerts-api-poller-b65c4bc4d-ftn5s
Definition of done
After restarting the Lima VM with limactl restart lima-kilo, the config should still have the expected values:
fran@lima-kilo:~$ sysctl fs.inotify.max_user_instances fs.inotify.max_user_watches fs.inotify.max_queued_events fs.inotify.max_user_instances = 1048576 fs.inotify.max_user_watches = 1048576 fs.inotify.max_queued_events = 1048576
Impact
Pod logs are not truncated when using k9s or kubectl logs.