I'm trying to resolve an Error “ENOSPC: System Limit for Number of File Watchers Reached”
issue; which typically is solved by increasing the fs.inotify.max_user_watches
value via sysctl
on the Host environment.
Additionally, I am not sure if part of the issue is related to using "Spot" Nodes.
Unfortunately, all my attempts to set or overwrite this value have failed. Either due to lack of permissions: e.g. /proc/sys/fs/inotify/max_user_watches: Read-only file system
And when trying to configure the GKE Nodes themselves, the linuxConfig.sysctl
options does not appear to support fs.inotify.max_user_watches
.
Node config: pool.yaml
kubeletConfig: {}
linuxConfig:
sysctl:
fs.inotify.max_user_watches: '1048576'
~ gcloud container node-pools update POOL_NAME \
--cluster=CLUSTER_NAME \
--system-config-from-file=pool.yaml
ERROR: (gcloud.container.node-pools.update)
ResponseError: code=400, message=Unsupported kernel parameter fs.inotify.max_user_watches.
Any help, specific to GKE, would be greatly appreciated!