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/node-autoprovision.md
+66-52Lines changed: 66 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,8 @@ description: Learn about Azure Kubernetes Service (AKS) node autoprovisioning (p
4
4
ms.topic: article
5
5
ms.custom: devx-track-azurecli
6
6
ms.date: 01/18/2024
7
-
ms.author: juda
7
+
ms.author: schaffererin
8
+
author: schaffererin
8
9
#Customer intent: As a cluster operator or developer, how to scale my cluster based on workload requirements and right size my nodes automatically
9
10
---
10
11
@@ -68,7 +69,7 @@ NAP is based on the Open Source [Karpenter](https://karpenter.sh) project, and t
68
69
- The only network configuration allowed is Cilium + Overlay + Azure
69
70
- You can't enable in a cluster where node pools have cluster autoscaler enabled
70
71
71
-
### Unsupported features:
72
+
### Unsupported features
72
73
73
74
- Windows node pools
74
75
- Applying custom configuration to the node kubelet
@@ -84,69 +85,82 @@ NAP is based on the Open Source [Karpenter](https://karpenter.sh) project, and t
84
85
85
86
## Enable node autoprovisioning
86
87
87
-
To enable node autoprovisioning, create a new cluster using the az aks create command and set --node-provisioning-mode to "Auto". You'll also need to use overlay networking and the cilium network policy.
88
+
### Enable node autoprovisioning on a new cluster
88
89
89
90
### [Azure CLI](#tab/azure-cli)
90
91
91
-
```azurecli-interactive
92
-
az aks create --name karpuktest --resource-group karpuk --node-provisioning-mode Auto --network-plugin azure --network-plugin-mode overlay --network-dataplane cilium
92
+
- Enable node autoprovisioning on a new cluster using the `az aks create` command and set `--node-provisioning-mode` to `Auto`. You also need to set the `--network-plugin` to `azure`, `--network-plugin-mode` to `overlay`, and `--network-dataplane` to `cilium`.
93
93
94
-
```
94
+
```azurecli-interactive
95
+
az aks create --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME --node-provisioning-mode Auto --network-plugin azure --network-plugin-mode overlay --network-dataplane cilium
96
+
```
95
97
96
-
### [Azure ARM](#tab/azure-arm)
98
+
### [ARM template](#tab/arm)
97
99
98
-
```azurecli-interactive
99
-
az deployment group create --resource-group napcluster --template-file ./nap.json
100
-
```
100
+
- Enable node autoprovisioning on a new cluster using the `az deployment group create` command and specify the `--template-file` parameter with the path to the ARM template file.
101
+
102
+
```azurecli-interactive
103
+
az deployment group create --resource-group $RESOURCE_GROUP_NAME --template-file ./nap.json
### Enable node autoprovisioning on an existing cluster
157
+
158
+
- Enable node autoprovisioning on an existing cluster using the `az aks update` command and set `--node-provisioning-mode` to `Auto`. You also need to set the `--network-plugin` to `azure`, `--network-plugin-mode` to `overlay`, and `--network-dataplane` to `cilium`.
159
+
160
+
```azurecli-interactive
161
+
az aks update --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME --node-provisioning-mode Auto --network-plugin azure --network-plugin-mode overlay --network-dataplane cilium
162
+
```
163
+
150
164
## Node pools
151
165
152
166
Node autoprovision uses a list of VM SKUs as a starting point to decide which is best suited for the workloads that are in a pending state. Having control over what SKU you want in the initial pool allows you to specify specific SKU families, or VM types and the maximum amount of resources a provisioner uses.
0 commit comments