Increase fs.inotify.max_user_instances limit. Fixes #2912

This commit is contained in:
Steele Clifton-Berry 2017-07-12 16:35:19 +10:00
parent ec93c35df3
commit 67e4e0f111
1 changed files with 6 additions and 0 deletions

View File

@ -96,6 +96,12 @@ func (b *SysctlBuilder) Build(c *fi.ModelBuilderContext) error {
"# Increase size of file handles and inode cache",
"fs.file-max = 2097152",
"",
"# Max number of inotify watches for a user",
"# Since dockerd runs as a single user, the default value of 128 per user is too low",
"# e.g. uses of inotify: nginx ingress controller, kubectl logs -f",
"fs.inotify.max_user_instances = 8192",
"",
)
}