-
Notifications
You must be signed in to change notification settings - Fork 6.4k
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
add image garbage collection #9832
add image garbage collection #9832
Conversation
Welcome @zhan9san! |
Hi @zhan9san. Thanks for your PR. I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
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.
Looks interesting feature, just one comment.
/cc @oomichi
docs/vars.md
Outdated
@@ -205,6 +205,10 @@ Stack](https://github.com/kubernetes-sigs/kubespray/blob/master/docs/dns-stack.m | |||
|
|||
* *kubelet_streaming_connection_idle_timeout* - Set the maximum time a streaming connection can be idle before the connection is automatically closed. | |||
|
|||
* *kubelet_image_gc_high_threshold* - Set the percent of disk usage before which image garbage collection is never run. | |||
|
|||
* *kubelet_image_gc_low_threshold* - Set the percent of disk usage before which image garbage collection is never run . |
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.
Could we describe different explanation with the above kubelet_image_gc_high_threshold
?
Current description is completely same and it is hard to know the difference from that.
In addition, it is nice to describe some example values for those options.
(I was wondering we need to specify 90
or 90%
)
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.
Sorry, it's a typo.
It is fixed, and the commits are squashed.
6e714de
to
64f7597
Compare
Thanks @zhan9san |
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.
@zhan9san Thank you for the PR
Not sure if a default var should be set in default, but this is not always done so fine by me
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: floryut, zhan9san The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
IMO, there is no need to set the default value in As we can see, this item is not used frequently, the advanced usage can set it explicitly. The default value is set in If they are not defined, no item would be set in config by |
Maybe this PR was not needed, because |
You are kind of right, but it is easier for end user to configure them when presented that way, I'm incline to only have corner case args set using extra_args, and common one using vars |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Customize the imageGCHighThresholdPercent and imageGCLowThresholdPercent values in the kubelet config
Which issue(s) this PR fixes:
Fixes #9815
Special notes for your reviewer:
Does this PR introduce a user-facing change?: