inotify resources exhausted

inotify resources exhausted

tail -f /var/log/kubelet.log

tail: inotify resources exhausted
tail: inotify cannot be used, reverting to polling

debug

cat /proc/sys/fs/inotify/max_user_watches
8192

resolved

  1. Add the following line to either /etc/sysctl.conf file or a new *.conf file (e.g. idea.conf) under /etc/sysctl.d/ directory:

    fs.inotify.max_user_watches = 524288

  2. Then run this command to apply the change:

    sudo sysctl -p --system

refer

https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit

原文地址:https://www.cnblogs.com/brookin/p/6139073.html