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-static-block-allocation.md
+6-39Lines changed: 6 additions & 39 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -59,9 +59,9 @@ where N is any positive integer and N > 0
59
59
This feature is **_not_** available in the following regions:
60
60
61
61
- US South
62
-
- EastUS2
63
-
- WestUS
64
-
- WestUS2
62
+
- East US 2
63
+
- West US
64
+
- West US 2
65
65
66
66
## Plan IP addressing
67
67
@@ -93,7 +93,7 @@ The [deployment parameters][azure-cni-deployment-parameters]for configuring basi
93
93
## Before you begin
94
94
95
95
- If using the Azure CLI, you need the `aks-preview` extension. See [Install the `aks-preview` Azure CLI extension](#install-the-aks-preview-azure-cli-extension).
96
-
- If using ARM or the REST API, the AKS API version must be *2024-01-02-preview or later*.
96
+
- If using ARM or the REST API, the AKS API version must be _2024-01-02-preview or later_.
97
97
98
98
### Install the `aks-preview` Azure CLI extension
99
99
@@ -117,7 +117,7 @@ The [deployment parameters][azure-cni-deployment-parameters]for configuring basi
117
117
az feature register --namespace "Microsoft.ContainerService" --name "AzureVnetScalePreview"
118
118
```
119
119
120
-
It takes a few minutes for the status to show *Registered*.
120
+
It takes a few minutes for the status to show _Registered_.
121
121
122
122
2. Verify the registration status using the [`az feature show`][az-feature-show] command.
123
123
@@ -185,44 +185,11 @@ az aks nodepool add --cluster-name $clusterName -g $resourceGroup -n newnodepoo
185
185
--no-wait
186
186
```
187
187
188
-
## Monitor IP subnet usage
189
-
190
-
Azure CNI provides the capability to monitor IP subnet usage. To enable IP subnet usage monitoring, follow the steps below:
191
-
192
-
### Get the YAML file
193
-
194
-
1. Download or grep the file named container-azm-ms-agentconfig.yaml from [GitHub][github].
195
-
196
-
2. Find **`azure_subnet_ip_usage`** in integrations. Set `enabled` to `true`.
197
-
198
-
3. Save the file.
199
-
200
-
### Get the AKS credentials
201
-
202
-
Set the variables for subscription, resource group and cluster. Consider the following as examples:
203
-
204
-
```azurecli-interactive
205
-
az account set -s $subscription
206
-
az aks get-credentials -n $clusterName -g $resourceGroup
207
-
```
208
-
209
-
### Apply the config
210
-
211
-
1. Open terminal in the folder the downloaded **container-azm-ms-agentconfig.yaml** file is saved.
212
-
213
-
2. First, apply the config using the command: `kubectl apply -f container-azm-ms-agentconfig.yaml`
214
-
215
-
3. This will restart the pod and after 5-10 minutes, the metrics will be visible.
216
-
217
-
4. To view the metrics on the cluster, go to Workbooks on the cluster page in the Azure portal, and find the workbook named "Subnet IP Usage". Your view will look similar to the following:
218
-
219
-
:::image type="content" source="media/configure-azure-cni-dynamic-ip-allocation/ip-subnet-usage.png" alt-text="A diagram of the Azure portal's workbook blade is shown, and metrics for an AKS cluster's subnet IP usage are displayed.":::
220
-
221
188
## Static allocation of CIDR blocks and enhanced subnet support FAQs
222
189
223
190
***Can I assign multiple pod subnets to a cluster?**
224
191
225
-
Yes, multiple subnets can be assigned to a cluster but only one subnet can be assigned to each node pool. Different node pools across the same/different cluster can share the same subnet.
192
+
Multiple subnets can be assigned to a cluster but only one subnet can be assigned to each node pool. Different node pools across the same/different cluster can share the same subnet.
226
193
227
194
***Can I assign Pod subnets from a different VNet altogether?**
0 commit comments