-
Notifications
You must be signed in to change notification settings - Fork 40k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Declare out of disk when there is no free inodes #28176
Conversation
GCE e2e build/test passed for commit 2fb2ef196ef9e7d0c0ec20d35e7dfa60d2234322. |
2fb2ef1
to
8cc6057
Compare
GCE e2e build/test passed for commit 8cc6057. |
if fsInfo.Available < int64(threshold)*mb { | ||
glog.Infof("Running out of space on disk for %q: available %d MB, threshold %d MB", fsType, fsInfo.Available/mb, threshold) | ||
return false, nil | ||
} | ||
if fsInfo.InodesFree == 0 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we define a threshold for inodes as well that is > 0? By the time kubelet detects that there are inodes, the pods on the node are most likely stuck.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
My comment can be resolved in a subsequent PR too.
Just one comment. Otherwise LGTM |
@k8s-bot test this [submit-queue is verifying that this PR is safe to merge] |
This is a distinct condition from DiskPressure, correct? (Which since I have been out appears to need a rebase next week) |
GCE e2e build/test passed for commit 8cc6057. |
Automatic merge from submit-queue |
#21546