Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Service 'pf9-kubelet' Keeps Restarting
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
The pf9-kubelet service is continuously restarting.
The following errors are present in the /var/log/pf9/kube/kube.log on the node.
watcher.go:146] Failed to watch directory "/sys/fs/cgroup/memory/system.slice/run-[UUID].scope": inotify_add_watch /sys/fs/cgroup/memory/system.slice/run-[UUID].scope: no space left on devicekubelet.go:1365] Failed to start cAdvisor inotify_add_watch /sys/fs/cgroup/memory/system.slice/run-[UUID].scope: no space left on deviceEnvironment
- Platform9 Managed Kubernetes - v4.0 and Higher
- kubelet
Cause
The kubelet service fails to start due to inotify resource issues. The error itself means that system is getting low on inotify watches, which enable programs to monitor file or directory changes.
Resolution
- Identify the current setting.
xxxxxxxxxx# cat /proc/sys/fs/inotify/max_user_watches- The output resembles the following code
xxxxxxxxxx8192- Increase value.
xxxxxxxxxx# echo 1048576 > /proc/sys/fs/inotify/max_user_watches- To make the changes persistent across reboot.
xxxxxxxxxx# echo "fs.inotify.max_user_watches = 1048576" >> /etc/sysctl.confAdditional Information
- This is a known Bug #10421 in Kubernetes.
- Use the attached script inotify_watcher_count.sh to find out which application is using the inotify resource and the exact count of inotify watches on a system.
- Note: It will need the root access to parse the details from /proc filesystem
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Discard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message