Skip to content

Commit 8dcda52

Browse files
authored
Merge pull request #77227 from MicahMcKittrick-MSFT/patch-160
MicrosoftDocs/azure-docs#31721
2 parents e20fe3f + cd9e580 commit 8dcda52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

articles/aks/api-server-authorized-ip-ranges.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ FIREWALL_INTERNAL_IP=$(az network firewall show \
188188
--query ipConfigurations[0].privateIpAddress -o tsv)
189189
190190
# Get the IP address of API server endpoint
191-
K8S_ENDPOINT_IP=$(k get endpoints -o=jsonpath='{.items[?(@.metadata.name == "kubernetes")].subsets[].addresses[].ip}')
191+
K8S_ENDPOINT_IP=$(kubectl get endpoints -o=jsonpath='{.items[?(@.metadata.name == "kubernetes")].subsets[].addresses[].ip}')
192192
```
193193

194194
Finally, create a route in the existing AKS network route table using the [az network route-table route create][az-network-route-table-route-create] command that allows traffic to use the Azure firewall appliance for API server communication.

0 commit comments

Comments
 (0)