Share:
Twitter
LinkedIn
Facebook
Reddit
Whatsapp
Follow by Email
Reading Time: < 1 minute

Managing your AKS clusters efficiently is crucial, especially when dealing with problematic nodes or reducing the number of deallocated nodes. With the AKS node deletion feature in preview, you can now remove specific VMs without switching the node pool state.

Steps to Remove Specific VMs in AKS

First you need to ensure you have the latest aks-preview extension:

Now let’s see what nodes you have running:

Pick one of the nodes you would like to delete and then use the following command to remove it. Just make sure you pick the right node.

Did you notice in the command you can even do more than one VM at a time? It’s just a space separated list.

Now just run kubectl get nodes again and you should see your nodes are either being removed or removed already.

Conclusion

Deleting specific nodes directly from a node pool simplifies cluster management, making it easier to handle deallocated nodes or problematic VMs. This feature, now in preview, enhances your ability to maintain optimal performance and resource allocation in AKS.

Share:
Twitter
LinkedIn
Facebook
Reddit
Whatsapp
Follow by Email

Pixel Robots.

I’m Richard Hooper aka Pixel Robots. I started this blog in 2016 for a couple reasons. The first reason was basically just a place for me to store my step by step guides, troubleshooting guides and just plain ideas about being a sysadmin. The second reason was to share what I have learned and found out with other people like me. Hopefully, you can find something useful on the site.

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *