AKS icon indicating copy to clipboard operation
AKS copied to clipboard

kubectl - unathorized - cannot connect to server

Open gardlt opened this issue 8 years ago • 10 comments

Just deployed a AKS , cluster in the EAST US region, and am trying to kubectl to get cluster information. But i am getting Unable to connect to the server: x509: certificate signed by unknown authority

i ran the az aks get-credentials command again to see if it was a an issue but am getting the same result.

gardlt avatar Feb 08 '18 21:02 gardlt

I am getting this error on new clusters created in East US. I have existing clusters that seem ok.

jmalobicky avatar Mar 05 '18 19:03 jmalobicky

I ran into the same issue after a while. My cluster is deployed in CENTRAL US .

Unable to connect to the server: x509: certificate signed by unknown authority

az aks get-credentials did not help either.

SRAM85 avatar Apr 26 '18 18:04 SRAM85

Got the same problem. Just trying to follow the walkthrough here https://docs.microsoft.com/en-us/azure/aks/kubernetes-walkthrough

I successfully deploy the cluster but cant do anything after that. Always getting the "Unable to connect to the server: x509: certificate signed by unknown authority"

pwsuperstar avatar May 14 '18 11:05 pwsuperstar

Same error:

Unable to connect to the server: x509: certificate has expired or is not yet valid

kockodev avatar Jun 01 '18 00:06 kockodev

Encountered this issue today. I debugged the certificates with openssl and concluded that ca was simply invalid. Recreated the cluster and after that az aks get-credentials returned valid credentials (and certs). Please fix this.

suonto avatar Jul 11 '18 14:07 suonto

Believe this has been fixed; please reopen if still an issue.

seanknox avatar Aug 07 '18 15:08 seanknox

@seanknox can you please share the root cause of this if it has been fixed?

suonto avatar Aug 13 '18 06:08 suonto

I just created an AKS cluster following the instructions here: https://docs.microsoft.com/en-us/azure/aks/tutorial-kubernetes-deploy-cluster and I'm seeing the same issue.

Unable to connect to the server: x509: certificate signed by unknown authority

wesleyae avatar Dec 17 '18 16:12 wesleyae

This is happening again, East US. Going to try another region.

asc-adean avatar Jan 24 '19 21:01 asc-adean

East US same issue here: x509: certificate signed by unknown authority

botengyao avatar Apr 27 '20 23:04 botengyao