Can't i get Kubernetes version in my local machine

2/20/2017

i'm about to jump a bit to Kubernetes to see how it work and perform, i had a small problem that block me:

kubectl version

Client Version: version.Info{Major:"1", Minor:"5", GitVersion:"v1.5.3", GitCommit:"029c3a408176b55c30846f0faedf56aae5992e9b", GitTreeState:"clean", BuildDate:"2017-02-17T20:48:54Z", GoVersion:"go1.8", Compiler:"gc", Platform:"darwin/amd64"} The connection to the server localhost:8080 was refused - did you specify the right host or port?

*i'm running tests on Mac El Capitane

Any help ?

-- SOufiane Fadil
kubernetes

1 Answer

2/21/2017

The response indicates you did not create a Kubernetes Server.

Note that kubectl is the client tool which talks to a Kubernetes server.

You may want to use Kubernetes/minikube to run Kubernetes locally.

Or follow Kubernetes workshop to leverage a GKE hosted cluster.

-- Vincent De Smet
Source: StackOverflow