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
+26-20Lines changed: 26 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,7 +37,7 @@ This article shows you how to use Azure CNI networking for dynamic allocation of
37
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
38
39
39
```azurecli-interactive
40
-
az aks enable-addons --addons monitoring --name <cluster-name> --resource-group <resource-group-name>
40
+
az aks enable-addons --addons monitoring --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME
41
41
```
42
42
43
43
## Plan IP addressing
@@ -73,31 +73,33 @@ Using dynamic allocation of IPs and enhanced subnet support in your cluster is s
73
73
Create the virtual network with two subnets.
74
74
75
75
```azurecli-interactive
76
-
resourceGroup="myResourceGroup"
77
-
vnet="myVirtualNetwork"
78
-
location="westcentralus"
76
+
RESOURCE_GROUP_NAME="myResourceGroup"
77
+
VNET_NAME="myVirtualNetwork"
78
+
LOCATION="westcentralus"
79
+
SUBNET_NAME_1="nodesubnet"
80
+
SUBNET_NAME_2="podsubnet"
79
81
80
82
# Create the resource group
81
-
az group create --name $resourceGroup --location $location
83
+
az group create --name $RESOURCE_GROUP_NAME --location $LOCATION
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.
90
92
91
93
```azurecli-interactive
92
-
clusterName="myAKSCluster"
93
-
subscription="aaaaaaa-aaaaa-aaaaaa-aaaa"
94
+
CLUSTER_NAME="myAKSCluster"
95
+
SUBSCRIPTION="aaaaaaa-aaaaa-aaaaaa-aaaa"
94
96
95
-
az aks create --name $clusterName --resource-group $resourceGroup --location $location \
97
+
az aks create --name $CLUSTER_NAME --resource-group $RESOURCE_GROUP_NAME --location $LOCATION \
@@ -106,14 +108,18 @@ az aks create --name $clusterName --resource-group $resourceGroup --location $lo
106
108
When adding node pool, reference the node subnet using `--vnet-subnet-id` and the pod subnet using `--pod-subnet-id`. The following example creates two new subnets that are then referenced in the creation of a new node pool:
0 commit comments