You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/community/community_config_vars.md
+10-4Lines changed: 10 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,12 +12,18 @@ Community-contributed configuration variables are listed in the tables below. Th
12
12
<aname="spot_nodes"></a>
13
13
## Spot Nodes
14
14
15
-
Here is some information about spot nodes.
15
+
Spot Nodes allow you to run Azure Kubernetes Service (AKS) workloads on low-cost, surplus compute capacity offered by Azure. These Spot Virtual Machines (VMs) can significantly reduce infrastructure costs, especially for workloads that are fault-tolerant or batch-oriented or temporary lab environments. However, Spot VMs can be preempted (evicted) by Azure at any time if the capacity is needed elsewhere, which makes them less suitable for critical or stateful workloads.
16
16
17
-
Here is a warning about why they might cause issues.
17
+
For further information, see https://learn.microsoft.com/en-us/azure/aks/spot-node-pool
18
18
19
-
Here is a table with the variables you would use to configure them
19
+
> [!CAUTION]
20
+
> Spot nodes can be evicted with little notice. They are best used for non-production, non-critical workloads or for scenarios where cost savings outweigh the risk of eviction. This is a configuration not supported by SAS Technical Support. Monitor eviction rates and ensure your workloads can tolerate sudden node loss.
21
+
22
+
To enable a Spot node pool in your AKS cluster using this module, configure the community-maintained variables listed below. These options customize the behavior of the Spot node pool and its underlying virtual machine scale set.
20
23
21
24
| Name | Description | Type | Default | Release Added | Notes |
| community_priority | (Optional) The Priority for Virtual Machines within the Virtual Machine Scale Set that powers this Node Pool. Possible values are Regular and Spot. Defaults to Regular. Changing this forces a new resource to be created. | string |`Regular`| 10.3.0 | Changing this to Spot enables the Spot node pool functionality |
27
+
| community_eviction_policy | (Optional) The Eviction Policy which should be used for Virtual Machines within the Virtual Machine Scale Set powering this Node Pool. Possible values are Deallocate and Delete. Changing this forces a new resource to be created. | string |`Delete`| 10.3.0 ||
28
+
| community_spot_max_price | (Optional) The maximum price you're willing to pay in USD per Virtual Machine. Valid values are -1 (the current on-demand price for a Virtual Machine) or a positive value with up to five decimal places. Changing this forces a new resource to be created. | string |`-1`| 10.3.0 ||
description="(Optional) The Priority for Virtual Machines within the Virtual Machine Scale Set that powers this Node Pool. Possible values are Regular and Spot. Defaults to Regular. Changing this forces a new resource to be created."
error_message="ERROR: community_priority must be either 'Regular' or 'Spot'."
126
+
}
127
+
}
128
+
129
+
variable"community_eviction_policy" {
130
+
description="(Optional) The Eviction Policy which should be used for Virtual Machines within the Virtual Machine Scale Set powering this Node Pool. Possible values are Deallocate and Delete. Changing this forces a new resource to be created."
error_message="ERROR: community_eviction_policy can only be specified when community_priority is set to 'Spot'."
142
+
}
143
+
}
144
+
145
+
146
+
variable"community_spot_max_price" {
147
+
description="(Optional) The maximum price you're willing to pay in USD per Virtual Machine. Valid values are -1 (the current on-demand price for a Virtual Machine) or a positive value with up to five decimal places. Changing this forces a new resource to be created."
0 commit comments