Search
StarWind is a hyperconverged (HCI) vendor with focus on Enterprise ROBO, SMB & Edge

Prioritize your high critical applications in AKS

  • April 27, 2021
  • 4 min read
Cloud and Virtualization Architect. Florent is specializing in public, hybrid, and private cloud technologies. He is a Microsoft MVP in Cloud and Datacenter Management and an MCSE in Private Cloud.
Cloud and Virtualization Architect. Florent is specializing in public, hybrid, and private cloud technologies. He is a Microsoft MVP in Cloud and Datacenter Management and an MCSE in Private Cloud.


When you deploy your AKS cluster, by default, all pods have the same priority, 0, except for default pods that are created during the AKS creation:

Priority, 0, except for default pods

It means that when you do your CA rotation, or you have a crash, pods will restart randomly 😊 first arrive, first serve…

With Pod Priority, you can classify your pods, to give a start priority.

By default, you have 2 class created:

2 class created

Bigger is the value, higher will be the priority.

Let’s start by adding 3 new priorities. Use the following yaml file to create them:

Apply this yaml file. We have now 3 new priorities, that we can use:

Apply yaml file

Now, let’s apply these priorities to pods:

Dev-priority

As you can see, I deployed a lot of pods, with priority, by using in my deployment file the priorityClassName parameter.

Because I can have a maximum of 30 pods per node, I scale down my cluster from 2 nodes to one. I can see that dev pods and pods without priority are not running:

Pods without priority are not running

If I check logs of pods, I can see

Check the logs of pods

As you can see, it works fine. Don’t forget to apply this great feature in your AKS environment.

You can also test this feature, by following this article: Kubernetes Operations: Prioritize Workload in Overcommitted Clusters (microsoft.com)

Hey! Found Florent’s article helpful? Looking to deploy a new, easy-to-manage, and cost-effective hyperconverged infrastructure?
Alex Bykovskyi
Alex Bykovskyi StarWind Virtual HCI Appliance Product Manager
Well, we can help you with this one! Building a new hyperconverged environment is a breeze with StarWind Virtual HCI Appliance (VHCA). It’s a complete hyperconverged infrastructure solution that combines hypervisor (vSphere, Hyper-V, Proxmox, or our custom version of KVM), software-defined storage (StarWind VSAN), and streamlined management tools. Interested in diving deeper into VHCA’s capabilities and features? Book your StarWind Virtual HCI Appliance demo today!