AKS icon indicating copy to clipboard operation
AKS copied to clipboard

[Feature] Pod Eviction on Freeze and reboot

Open allyford opened this issue 3 years ago • 7 comments

When a VM scheduled maintenance freeze event occurs, we currently do nothing to mitigate the effects. The Evict on Freeze feature would allow customers who are negatively impacted by freezes to mark pods as "safe-to-drain". These "safe-to-drain" pods would be evicted from the node before the freeze event starts and replacement pods would be scheduled on unaffected nodes.

allyford avatar Feb 08 '23 16:02 allyford

If there are any specific use cases you would like addressed as part of this feature, please add comments to this issue

aritraghosh avatar May 07 '24 21:05 aritraghosh

It would be great to have this feature to mitigate the loss of VMs in Spot node pools. In addition to Freeze and Reboot it would be great to start evicting Pods gracefully as soon as possible when receiving a Preempt event. List of EventType is available here.

zioproto avatar May 08 '24 08:05 zioproto

Duplicate or Refer: https://github.com/Azure/AKS/issues/3719

ashwajce avatar May 31 '24 15:05 ashwajce

Good day! Could you please let me know the expected timeline for the fix to be ready for release?

shihchieh avatar Aug 13 '25 01:08 shihchieh

Should be in public preview in the next week or so...

bmoore-msft avatar May 12 '26 20:05 bmoore-msft

This feature is now in Public Preview.

You can find out more about the feature and how to enable it in our docs

varora24 avatar May 21 '26 17:05 varora24

Thanks for providing this feature! We have tried using it, but seemingly our terminationGracePeriodSeconds are not being respected, leading to reduced stability of workloads in our clusters when this feature is enabled. See #6039.

Kasper-Bizzkit avatar Oct 22 '26 13:10 Kasper-Bizzkit