Report this

What is the reason for this report?

Let pods terminate gracefully on soft eviction thresholds

Posted on December 5, 2019

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!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.