How to stop (deallocate) kubernetes nodes in azure without deleting the cluster?

5/31/2018

I would like to stop and deallocate the nodes in a kubernetes cluster in azure so It cannot be billed during weekends for example. I just can set to a minimun of 1 node using the az CLI

Any idea will be appreciated

-- Dario Romero
azure
kubernetes

1 Answer

2/19/2020

If your are using scale sets (used for autoscaling and multiple node pools) you can deallocate the scale sets via ui (search in the resource the scale sets are created) or via az cli az-vmss-deallocate

-- Miguel Santos
Source: StackOverflow