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
#Customer intent: As an Azure Kubernetes user, I want the AKS API server to allow access to my client IP address so that I can successfully connect to my AKS cluster.
8
-
ms.custom: sap:Connectivity
8
+
ms.custom: sap:Connectivity, innovation-engine
9
9
---
10
+
10
11
# Client IP address can't access the API server
11
12
12
13
This article describes how to fix issues that occur when you can't connect to an Azure Kubernetes Service (AKS) cluster because your client IP address can't access the AKS API server.
@@ -47,8 +48,8 @@ Unable to connect to the server: dial tcp <API-SERVER-IP>:443: connectex: A conn
47
48
[API server-authorized IP ranges](/azure/aks/api-server-authorized-ip-ranges) may have been enabled on the cluster's API server, but the client's IP address wasn't included in the IP ranges. To check whether this feature has been enabled, see if the following [az aks show](/cli/azure/aks#az-aks-show) command in Azure CLI produces a list of IP ranges:
48
49
49
50
```azurecli
50
-
az aks show --resource-group <cluster-resource-group> \
51
-
--name <cluster-name> \
51
+
az aks show --resource-group ${RG_NAME} \
52
+
--name ${CLUSTER_NAME} \
52
53
--query apiServerAccessProfile.authorizedIpRanges
53
54
```
54
55
@@ -76,18 +77,46 @@ Look at the cluster's API server-authorized ranges, and add your client's IP add
76
77
77
78
1. Get your client IP address by running this [curl](https://curl.se/docs/manpage.html) command:
0 commit comments