Let pods terminate gracefully on soft eviction thresholds

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 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? (

Submit an answer

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!

Sign In or Sign Up to Answer