By urlbox
Right now any evicted pods get terminated with 0 seconds grace period even when a soft eviction threshold is breached, which I think is wrong and effectively ignores the terminationGracePeriodSeconds set on the pod’s spec in eviction scenarios.
We need to configure the eviction policies https://kubernetes.io/docs/tasks/administer-cluster/out-of-resource/ and change the --eviction-max-pod-grace-period=“0” setting so that pods have a chance to gracefully shutdown when they are evicted.
It looks as though the dynamic kubelet config option is disabled by default on DOKS, (–dynamic-config-dir kubelet flag is not being set to a writable directory). Would it be possible to enable this so that we can configure the kubelet dynamically? (https://kubernetes.io/docs/tasks/administer-cluster/reconfigure-kubelet/#reconfiguring-the-kubelet-on-a-live-node-in-your-cluster)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello @urlbox
Unfortunately, at this time, DOKS does not support custom configurations in the kubelet. This includes enabling dynamic config via the --dynamic-config-dir flag and changing other kubelet settings, like the --eviction-max-pod-grace-period.
However, I would recommend sharing your requirements and use-case as a feature request on our official DigitalOcean Ideas page. Our product team reviews and uses these suggestions for improvements and feature development.
You can learn more about our current DOKS offering on our DigitalOcean Kubernetes documentation page.
Hope that this helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.