message: Unable to establish connection from agents to Kubernetes API server

Prem Yenne 0 Reputation points
2024-05-03T14:46:49.5766667+00:00

not able to connect to API server using kubectl as well

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.
1,883 questions
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 1,105 Reputation points
    2024-05-06T08:46:58.8466667+00:00

    Hello Prem Yenne.

    I understand you cannot establish connection to kubernetes API Server.
    This may be as a result of your cluster nodes not being able to connect to your cluster API server pod.
    To resolve this,

    Run a Netcat command to verify that your nodes can resolve the cluster's fully qualified domain name (FQDN):

    nc -vz <cluster-fqdn> 443

    In rare cases, the firewall's outbound IP address can be blocked if you've authorized IP addresses that are enabled on your cluster. In this scenario, you must add the outbound IP address of your firewall to the list of authorized IP ranges for the cluster.

    Please let me know if you have further questions

    You can mark it 'Accept Answer' if this helped.

    0 comments No comments