kubectl Unable to connect to the server

  1. Home
  2. Blog
  3. kubectl Unable to connect to the server

kubectl Unable to connect to the server

When working with Kubernetes if you are getting Unable to conntect to server timeout like below

mandarshinde@MacBook-Pro cloud-native % kubectl cluster-info dump
Unable to connect to the server: dial tcp 31.117.131.267:443: i/o timeout

Get current cluster name and Zone:

gcloud container clusters list

Configure Kubernetes to use your current cluster:

gcloud container clusters get-credentials [cluster name] --zone [zone]

Let's Share
Show Buttons
Hide Buttons