Spot Instances for AKS Agent Pools
Configure AKS Agent pools and Services to use spot instances in the DuploCloud platform
Last updated
Configure AKS Agent pools and Services to use spot instances in the DuploCloud platform
Last updated
© DuploCloud, Inc. All rights reserved. DuploCloud trademarks used herein are registered trademarks of DuploCloud and affiliates
Spot Instances in AKS are discounted VMs that use Azure's spare capacity. This makes them a cost-effective strategy for running Kubernetes workloads. However, they can be evicted when Azure needs the resources back, so they're best for fault-tolerant tasks that are resilient to interruptions.
Follow the steps to add an agent pool.
On the Add Azure Agent Pool page, select Spot from the Scale Set Priority list box.
In the Scale Set Eviction Policy list box, specify how the virtual machines (VMs) should be managed when they need to be evicted due to capacity constraints or other reasons:
Delete: When a VM is evicted, it is completely removed from the scale set and cannot be recovered. This option is typically used when you do not need to preserve the VM's state and prefer to free up resources immediately.
Deallocate: The evicted VM is stopped and its resources are released, but its configuration and state are preserved and it can be restarted later. This is useful when you want to save the VM's state for potential future use.
In the Spot Max Price field, Specify the highest price you are willing to pay for a spot instance.
When adding or editing a Service, select Tolerate spot instances.
Tolerations will be entered by default in the Add Service page, Advanced Options, Other Container Config field.