Azure Kubernetes Service - unable to connect to server, kubectl commands not responding

Pierre Gadea 5 Reputation points
2023-08-22T19:14:03.67+00:00

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

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,376 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Pierre Gadea 5 Reputation points
    2023-08-29T19:59:13.7566667+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

  2. 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


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.