-
Notifications
You must be signed in to change notification settings - Fork 39.8k
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
Set Kubelet Disk Defaults for the 1.7 release #46448
Set Kubelet Disk Defaults for the 1.7 release #46448
Conversation
/release-note |
/assign @pwittrock @vishh |
@k8s-bot pull-kubernetes-unit test this |
@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this |
@pwittrock i needed an approver from hack/OWNERS |
/approve |
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.
question on why % versus literal.
@@ -396,7 +393,7 @@ func SetDefaults_KubeletConfiguration(obj *KubeletConfiguration) { | |||
obj.HairpinMode = PromiscuousBridge | |||
} | |||
if obj.EvictionHard == nil { | |||
temp := "memory.available<100Mi" | |||
temp := "memory.available<100Mi,nodefs.available<10%,nodefs.inodesFree<5%" |
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.
actually, quick question here... why make this a percentage and not a literal value same as the old lowDiskSpace default of 256MB?
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.
We could use a literal value here as well if you want. If we use 256MB, I have a couple questions:
Should we enable inode eviction? If so, is a percentage still appropriate?
Should I still remove the custom defaults for vagrant, since they used nodefs.available<10% previously?
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.
i think for a default, 10% is still probably fine. re-applying my original tag.
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.
For storage I think performance is relative to available percentage of capacity and not an absolute value. so a percentage here makes sense
/approve |
@k8s-bot pull-kubernetes-verify test this |
@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this |
1 similar comment
@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this |
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.
/approve
@k8s-bot pull-kubernetes-e2e-gce-etcd3 test this |
/lgtm |
Thanks for the cleanup. |
/assign vishh |
Not sure why the bot fails to apply approved label |
arg... the test job keeps failing because we are out of quota for subnetworks... |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: dashpole, dchen1107, derekwaynecarr The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
Quota issue should be fixed. @k8s-bot pull-kubernetes-e2e-gce-etcd3 test this |
@k8s-bot pull-kubernetes-unit test this |
@k8s-bot pull-kubernetes-node-e2e test this |
@k8s-bot pull-kubernetes-federation-e2e-gce test this |
Automatic merge from submit-queue |
The
--low-diskspace-threshold-mb
flag has been depreciated since 1.6.This PR sets the default to
0
, and sets defaults for disk eviction based on the values used for our e2e tests.This also removes the custom defaults for vagrant, as the new defaults should work for it as well.
/assign @derekwaynecarr
cc @vishh