maksim-paskal / aks-node-termination-handler

Gracefully handle Azure Virtual Machines shutdown within Kubernetes
Apache License 2.0
34 stars 6 forks source link

listen scheduled events for all nodes in cluster #56

Closed maksim-paskal closed 11 months ago

maksim-paskal commented 11 months ago

Azure Scheduled Events send events for spot and not spot instances nodes. Historicaly this tool was used only on spot instances to gracefully terminate spot instances. This change will run pods on all nodes in cluster by default.

To run this pods only on spot instances - you need to add nodeSelector for example:

helm upgrade aks-node-termination-handler \
--install \
--namespace kube-system \
aks-node-termination-handler/aks-node-termination-handler \
--set priorityClassName=system-node-critical \
--set nodeSelector."kubernetes\.azure\.com/scalesetpriority"=spot