kubernetes / kubernetes

Production-Grade Container Scheduling and Management
https://kubernetes.io
Apache License 2.0
109.65k stars 39.27k forks source link

Add kubelet configuration option to adjust eviction period #126085

Open linxiulei opened 1 month ago

linxiulei commented 1 month ago

What would you like to be added?

Add an kubelet configuration option to adjust https://github.com/kubernetes/kubernetes/blob/7ec344dcef9a04920578aabe4e122bc0b3404afe/pkg/kubelet/kubelet.go#L163

Why is this needed?

For a steady node, evictions are very rare so executing eviction routine for every 10s is unnecessarily costly, which consumes about 1% CPU

k8s-ci-robot commented 1 month ago

This issue is currently awaiting triage.

If a SIG or subproject determines this is a relevant issue, they will accept it by applying the triage/accepted label and provide further guidance.

The triage/accepted label can be added by org members by writing /triage accepted in a comment.

Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes-sigs/prow](https://github.com/kubernetes-sigs/prow/issues/new?title=Prow%20issue:) repository.
linxiulei commented 1 month ago

/sig node

Levisngakop commented 1 month ago

Thank you