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: articles/aks/spot-node-pool.md
+6-4Lines changed: 6 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,8 @@ The following limitations apply when you create and manage AKS clusters with a s
85
85
* A spot node pool must use Virtual Machine Scale Sets.
86
86
* You cannot change ScaleSetPriority or SpotMaxPrice after creation.
87
87
* When setting SpotMaxPrice, the value must be -1 or a positive value with up to five decimal places.
88
-
* A spot node pool will have the label *scalesetpriority:spot*, the taint *scalesetpriority=spot:NoSchedule*, and system pods will have anti-affinity.
88
+
* A spot node pool will have the label *kubernetes.azure.com/scalesetpriority:spot*, the taint *kubernetes.azure.com/scalesetpriority=spot:NoSchedule*, and system pods will have anti-affinity.
89
+
* You must add a [corresponding toleration][spot-toleration] to schedule workloads on a spot node pool.
89
90
90
91
## Add a spot node pool to an AKS cluster
91
92
@@ -111,7 +112,7 @@ By default, you create a node pool with a *priority* of *Regular* in your AKS cl
111
112
The command also enables the [cluster autoscaler][cluster-autoscaler], which is recommended to use with spot node pools. Based on the workloads running in your cluster, the cluster autoscaler scales up and scales down the number of nodes in the node pool. For spot node pools, the cluster autoscaler will scale up the number of nodes after an eviction if additional nodes are still needed. If you change the maximum number of nodes a node pool can have, you also need to adjust the `maxCount` value associated with the cluster autoscaler. If you do not use a cluster autoscaler, upon eviction, the spot pool will eventually decrease to zero and require a manual operation to receive any additional spot nodes.
112
113
113
114
> [!Important]
114
-
> Only schedule workloads on spot node pools that can handle interruptions, such as batch processing jobs and testing environments. It is recommended that you set up [taints and tolerations][taints-tolerations] on your spot node pool to ensure that only workloads that can handle node evictions are scheduled on a spot node pool. For example, the above command ny default adds a taint of *scalesetpriority=spot:NoSchedule* so only pods with a corresponding toleration are scheduled on this node.
115
+
> Only schedule workloads on spot node pools that can handle interruptions, such as batch processing jobs and testing environments. It is recommended that you set up [taints and tolerations][taints-tolerations] on your spot node pool to ensure that only workloads that can handle node evictions are scheduled on a spot node pool. For example, the above command ny default adds a taint of *kubernetes.azure.com/scalesetpriority=spot:NoSchedule* so only pods with a corresponding toleration are scheduled on this node.
115
116
116
117
## Verify the spot node pool
117
118
@@ -123,14 +124,14 @@ az aks nodepool show --resource-group myResourceGroup --cluster-name myAKSCluste
123
124
124
125
Confirm *scaleSetPriority* is *Spot*.
125
126
126
-
To schedule a pod to run on a spot node, add a toleration that corresponds to the taint applied to your spot node. The following example shows a portion of a yaml file that defines a toleration that corresponds to a *scalesetpriority=spot:NoSchedule* taint used in the previous step.
127
+
To schedule a pod to run on a spot node, add a toleration that corresponds to the taint applied to your spot node. The following example shows a portion of a yaml file that defines a toleration that corresponds to a *kubernetes.azure.com/scalesetpriority=spot:NoSchedule* taint used in the previous step.
127
128
128
129
```yaml
129
130
spec:
130
131
containers:
131
132
- name: spot-example
132
133
tolerations:
133
-
- key: "scalesetpriority"
134
+
- key: "kubernetes.azure.com/scalesetpriority"
134
135
operator: "Equal"
135
136
value: "spot"
136
137
effect: "NoSchedule"
@@ -169,6 +170,7 @@ In this article, you learned how to add a spot node pool to an AKS cluster. For
0 commit comments