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/configure-azure-cni-dynamic-ip-allocation.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,11 @@ This article shows you how to use Azure CNI networking for dynamic allocation of
34
34
* Review the [deployment parameters][azure-cni-deployment-parameters] for configuring basic Azure CNI networking in AKS, as the same parameters apply.
35
35
* AKS Engine and DIY clusters aren't supported.
36
36
* Azure CLI version `2.37.0` or later.
37
+
* If you have an existing cluster, you need to enable Container Insights for monitoring IP subnet usage. You can enable Container Insights using the [`az aks enable-addons`][az-aks-enable-addons] command, as shown in the following example:
38
+
39
+
```azurecli-interactive
40
+
az aks enable-addons --addons monitoring --name <cluster-name> --resource-group <resource-group-name>
41
+
```
37
42
38
43
## Plan IP addressing
39
44
@@ -76,23 +81,24 @@ location="westcentralus"
76
81
az group create --name $resourceGroup --location $location
Create the cluster, referencing the node subnet using `--vnet-subnet-id` and the pod subnet using `--pod-subnet-id`.
89
+
Create the cluster, referencing the node subnet using `--vnet-subnet-id` and the pod subnet using `--pod-subnet-id` and enabling the monitoring add-on.
85
90
86
91
```azurecli-interactive
87
92
clusterName="myAKSCluster"
88
93
subscription="aaaaaaa-aaaaa-aaaaaa-aaaa"
89
94
90
-
az aks create -n $clusterName -g $resourceGroup -l $location \
95
+
az aks create --name $clusterName --resource-group $resourceGroup --location $location \
0 commit comments