We became fully operational again by deleting the cluster and recreating it. No other option was left since this is a mission-critical cluster and we could wait no further.
Azure Kubernetes Service - unable to connect to server, kubectl commands not responding
We can't see Kubernetes resources via Kubectl and the portal. This is for all my team members. This issue started this morning. We are on version 1.26.3. No updates/changes have happened in the last 3 weeks.
kubectl get pods --all-namespaces
Unable to connect to the server: dial tcp ...: connectex: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
When trying to view workloads from the AKS portal. This error displays:
Network error
Unable to reach the api server 'https://.........azmk8s.io' or api server is too busy to respond. Check your network settings and refresh to try again
2 answers
Sort by: Most helpful
-
-
mutaz-msft 2,351 Reputation points Microsoft Employee
2023-08-23T07:48:11.46+00:00 Hi @Pierre Gadea,
It seems this is a private AKS cluster and you need to use a VM that has access to the AKS cluster's Azure Virtual Network (VNet).
Options for connecting to the private cluster: https://learn.microsoft.com/en-us/azure/aks/private-clusters?tabs=azure-portal#options-for-connecting-to-the-private-cluster