Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Can't connect to my private cluster using kubectl (Unable to connect to the server: dial tcp )

M_M
Bronze 1
Bronze 1

i have 2 clusters same config , till yesterday i was able to connect to both of them , but today i was not able to connect to one of them , all apps are working fine , i just get this error when using kubectl 
«Unable to connect to the server: dial tcp IP:443: 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.»

i tried scaling up and down my cluster from the interface ( the scaling works but still i can't use kubectl)

can someone help plz ?

0 1 6,823
1 REPLY 1

It seems the kubectl lost connection to the Cluster and you can set the Cluster context by following this documentation here

Top Labels in this Space
Top Solution Authors