Skip to content

Commit a01bc9c

Browse files
authored
Merge pull request #95570 from zr-msft/aks-outbound-rule-list
[AKS] incorporated exerternal contribution
2 parents f08fc8e + bbe5a9a commit a01bc9c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

articles/aks/load-balancer-standard.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,25 @@ az aks create \
146146
--load-balancer-outbound-ip-prefixes <publicIpPrefixId1>,<publicIpPrefixId2>
147147
```
148148

149+
## Show the outbound rule for your load balancer
150+
151+
To show the outbound rule created in the load balancer, use [az network lb outbound-rule list][az-network-lb-outbound-rule-list] and specify the node resource group of your AKS cluster:
152+
153+
```azurecli-interactive
154+
NODE_RG=$(az aks show --resource-group myResourceGroup --name myAKSCluster --query nodeResourceGroup -o tsv)
155+
az network lb outbound-rule list --resource-group $NODE_RG --lb-name kubernetes -o table
156+
```
157+
158+
The previous commands will list the outbound rule for your load balancer, for example:
159+
160+
```console
161+
AllocatedOutboundPorts EnableTcpReset IdleTimeoutInMinutes Name Protocol ProvisioningState ResourceGroup
162+
------------------------ ---------------- ---------------------- --------------- ---------- ------------------- -------------
163+
0 True 30 aksOutboundRule All Succeeded MC_myResourceGroup_myAKSCluster_eastus
164+
```
165+
166+
In the example output, *AllocatedOutboundPorts* is 0. The value for *AllocatedOutboundPorts* means that SNAT port allocation reverts to automatic assignment based on backend pool size. See [Load Balancer outbound rules][azure-lb-outbound-rules] and [Outbound connections in Azure][azure-lb-outbound-connections] for more details.
167+
149168
## Next steps
150169

151170
Learn more about Kubernetes services at the [Kubernetes services documentation][kubernetes-services].
@@ -174,11 +193,14 @@ Learn more about Kubernetes services at the [Kubernetes services documentation][
174193
[az-feature-register]: /cli/azure/feature#az-feature-register
175194
[az-group-create]: /cli/azure/group#az-group-create
176195
[az-provider-register]: /cli/azure/provider#az-provider-register
196+
[az-network-lb-outbound-rule-list]: /cli/azure/network/lb/outbound-rule?view=azure-cli-latest#az-network-lb-outbound-rule-list
177197
[az-network-public-ip-show]: /cli/azure/network/public-ip?view=azure-cli-latest#az-network-public-ip-show
178198
[az-network-public-ip-prefix-show]: /cli/azure/network/public-ip/prefix?view=azure-cli-latest#az-network-public-ip-prefix-show
179199
[az-role-assignment-create]: /cli/azure/role/assignment#az-role-assignment-create
180200
[azure-lb]: ../load-balancer/load-balancer-overview.md
181201
[azure-lb-comparison]: ../load-balancer/load-balancer-overview.md#skus
202+
[azure-lb-outbound-rules]: ../load-balancer/load-balancer-outbound-rules-overview.md#snatports
203+
[azure-lb-outbound-connections]: ../load-balancer/load-balancer-outbound-connections.md#snat
182204
[install-azure-cli]: /cli/azure/install-azure-cli
183205
[internal-lb-yaml]: internal-lb.md#create-an-internal-load-balancer
184206
[kubernetes-concepts]: concepts-clusters-workloads.md

0 commit comments

Comments
 (0)