Unable to run kubectl command on MacOS

11/12/2018

I have just installed Kubernetes on my MacOS using homebrew.

Now, in the terminal, I ran kubectl version command and the error message reads Unable to connect to the server: dial tcp 35.225.115.157:443: i/o timeout

How to solve this issue?

-- Dat Nguyen
kubernetes

1 Answer

11/12/2018

kubectl version makes a connection to both client and server (kubernetes master) in order to print the versions.

Run kubectl cluster-info and check if the server is up.

-- Rushil Basappa
Source: StackOverflow