Skip to content

Commit 5da6bdb

Browse files
author
naman-msft
committed
updated docs
1 parent b73f06d commit 5da6bdb

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

scenarios/AKSHealthProbeMode/aks-health-probe-mode.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,15 @@ The following operations also happen:
3737

3838
To troubleshoot these issues, follow these steps:
3939

40-
1. Check the RP frontend log to see if the health probe mode in the LoadBalancerProfile is properly configured. You can use the `az aks show` command to view the LoadBalancerProfile property of your cluster.
40+
0. First, connect to your AKS cluster using the Azure CLI:
41+
42+
```azurecli
43+
export RESOURCE_GROUP="aks-rg"
44+
export AKS_CLUSTER_NAME="aks-cluster"
45+
az aks get-credentials --resource-group $RESOURCE_GROUP --name $AKS_CLUSTER_NAME --overwrite-existing
46+
```
47+
48+
1. Next, check the RP frontend log to see if the health probe mode in the LoadBalancerProfile is properly configured. You can use the `az aks show` command to view the LoadBalancerProfile property of your cluster.
4149
4250
```azurecli
4351
export RESOURCE_GROUP="aks-rg"
@@ -149,7 +157,7 @@ The health probe mode feature requires you to register the feature on your subsc
149157
Make sure you register the feature for your subscription before creating or updating your cluster. You can use the `az feature register` command to register the feature.
150158
151159
```azurecli
152-
export FEATURE_NAME="EnableAKSClusterServiceLoadBalancerHealthProbeMode"
160+
export FEATURE_NAME="EnableSLBSharedHealthProbePreview"
153161
export PROVIDER_NAMESPACE="Microsoft.ContainerService"
154162
az feature register --name $FEATURE_NAME --namespace $PROVIDER_NAMESPACE
155163
```

scenarios/AKSNodeLabels/aks-node-labels.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ kubectl get nodes --show-labels | grep -e "costcenter=5000" -e "dept=HR"
151151

152152
You can update the labels on an existing node pool. Note: updating labels will overwrite the old labels.
153153

154-
```shell
154+
```bash
155155
az aks nodepool update \
156156
--resource-group $RESOURCE_GROUP \
157157
--cluster-name $AKS_CLUSTER_NAME \

scenarios/NATGatewayAKSCluster/nat-gateway-aks-cluster.md

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ This article shows you how to create an Azure Kubernetes Service (AKS) cluster w
3131

3232
The following commands first create the required resource group, then the AKS cluster with a managed NAT gateway.
3333

34-
```shell
34+
```azurecli-interactive
3535
export RANDOM_SUFFIX=$(openssl rand -hex 3)
3636
export MY_RG="myResourceGroup$RANDOM_SUFFIX"
3737
export MY_AKS="myNatCluster$RANDOM_SUFFIX"
@@ -54,7 +54,7 @@ Results:
5454
}
5555
```
5656

57-
```shell
57+
```azurecli-interactive
5858
az aks create \
5959
--resource-group $MY_RG \
6060
--name $MY_AKS \
@@ -67,6 +67,8 @@ az aks create \
6767

6868
Results:
6969

70+
<!-- expected_similarity=0.3 -->
71+
7072
```output
7173
{
7274
"aadProfile": null,
@@ -94,7 +96,7 @@ Results:
9496

9597
* Update the outbound IP address or idle timeout using the [`az aks update`][az-aks-update] command with the `--nat-gateway-managed-outbound-ip-count` or `--nat-gateway-idle-timeout` parameter.
9698

97-
The following example updates the NAT gateway managed outbound IP count for the AKS cluster.
99+
The following example updates the NAT gateway managed outbound IP count for the AKS cluster to 5.
98100

99101
```azurecli-interactive
100102
az aks update \
@@ -379,12 +381,12 @@ Windows enables OutboundNAT by default. You can now manually disable OutboundNAT
379381
380382
The following command adds a Windows node pool to an existing AKS cluster, disabling OutboundNAT.
381383
382-
```azurecli-interactive
383-
export NODEPOOL_NAME=$(az aks nodepool list --resource-group $MY_RG --cluster-name $AKS_NAME --query '[0].name' --output tsv)
384+
```shell
385+
export WIN_NODEPOOL_NAME="win$(head -c 1 /dev/urandom | xxd -p)"
384386
az aks nodepool add \
385387
--resource-group $MY_RG \
386-
--cluster-name $AKS_NAME \
387-
--name $NODEPOOL_NAME \
388+
--cluster-name $MY_AKS \
389+
--name $WIN_NODEPOOL_NAME \
388390
--node-count 3 \
389391
--os-type Windows \
390392
--disable-windows-outbound-nat

scenarios/metadata.json

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,18 +2572,6 @@
25722572
"configurations": {
25732573
"permissions": [],
25742574
"configurableParams": [
2575-
{
2576-
"inputType": "textInput",
2577-
"commandKey": "MY_RG",
2578-
"title": "Resource Group Name",
2579-
"defaultValue": ""
2580-
},
2581-
{
2582-
"inputType": "textInput",
2583-
"commandKey": "MY_AKS",
2584-
"title": "AKS Cluster Name",
2585-
"defaultValue": ""
2586-
}
25872575
]
25882576
}
25892577
},

0 commit comments

Comments
 (0)