Azure-docs: Low priority VMs in AKS NodePool with VMSS

Created on 7 Jun 2019  Â·  8Comments  Â·  Source: MicrosoftDocs/azure-docs

The Azure RM template for virtual machine scale sets contains a priority attribute to create a scaleset with low priority VMs. (See: VMSS Docs )
The template for creating Azure node pools for AKS does not.

Is it possible to create a virtual machine scale set with low priority VMs?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri1 container-servicsvc cxp product-question triaged

Most helpful comment

Can we reopen this? I don't understand why Azure people are closing issues when there was no resolution while it could be solved, seen this multiple times already.

All 8 comments

@patst
Thanks for the question! We are investigating and will update you shortly.

@patst Currently thats not supported. We get to select the agent pool type from AvailabilitySet or VirtualMachineScaleSets.

You can consider using Virtual nodes where it uses ACI in the backend to deploy containers. In ACi containers are charged per second basis. Its better suited for transient loads and CI workloads.

@jakaruna-MSFT thanks for the fast reply and the information.

Maybe it will be possible to reference a existing VirtualMachineScaleSet in the future. With that the configurations from the VirtualMachineScaleSet docs may work.

I'm not satisfied with this answer and the closure of the issue.

For me it appears Priority/Preemption is available in the AKS API: https://docs.microsoft.com/en-us/rest/api/aks/managedclusters/createorupdate#scalesetpriority

However it does not seem to be available in Azure CLI yet. az aks nodepool add -h does not list any options about it.

It should be a fairly trivial thing to expose this in azure-cli if it's available in the API, no?

Can we reopen this? I don't understand why Azure people are closing issues when there was no resolution while it could be solved, seen this multiple times already.

@StianOvrevage Now az aks nodepool add already exposes scaleset priority. However, I need to enable the AKS Preview Features (https://github.com/Azure/AKS/blob/master/previews.md) to be able to execute it successfully.

@ybuasen even after enabling AKS Preview Features

 --priority                        : The priority of the node pool.  Allowed values: Regular,
                                        Spot.  Default: Regular.

@ybuasen even after enabling AKS Preview Features

 --priority                        : The priority of the node pool.  Allowed values: Regular,
                                        Spot.  Default: Regular.

@niteesh You need to set --priority to "Spot". Low-priority has been discontinued and replaced by Spot.

The below information is from Microsoft (https://azure.microsoft.com/en-us/pricing/spot/#documentation)
"The preview of Azure low-priority VMs on scale sets has been discontinued and has been retired as of February 3, 2020. Spot VMs have replaced Azure low-priority VMs and will include new capabilities, such as variable pricing. Spot pricing is also available on both single VMs and VMSS."

Was this page helpful?
0 / 5 - 0 ratings

Related issues

JeffLoo-ong picture JeffLoo-ong  Â·  3Comments

bityob picture bityob  Â·  3Comments

jebeld17 picture jebeld17  Â·  3Comments

spottedmahn picture spottedmahn  Â·  3Comments

paulmarshall picture paulmarshall  Â·  3Comments