Can AKS be configured to use Azure Spot Instances for scaling

Kandice Hendricks 1 Reputation point
2020-09-09T15:37:22.483+00:00

We are using Terraform for complete build of AKS and would like a way to force Azure Spot Instances for AKS scaling. How is the best way to do this?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,988 questions
Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,144 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
407 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sam Cogan 10,747 Reputation points MVP
    2020-09-10T10:25:26.713+00:00

    When you create an AKS cluster you must have a default node pool, then you can add as many additional node pools as you like. You cannot use Spot instances for the default node pool, however you can use them for your additional node pools. So if you want to do this you would create a small default pool to run system pods etc, and then create another node pool for your workloads using spot nodes.

    In Terraform you can do this with the "priority" property of the node pool.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.