Update on install-kubectl.md (#6954)

* Update on install-kubectl.md

Added more info on the reason people may get "the connection to the server was refused error". It will help newbies understand the kubectl is a client that connects to a cluster. Hence, a Kubernetes cluster such as a minikube tool will be needed to verify that kubectl is functioning correctly.

* updating wording to remove redundancy
This commit is contained in:
Carlos Gonzales 2018-02-12 17:56:50 -05:00 committed by k8s-ci-robot
parent 7b6bcf6a44
commit 8eb5addaf0
1 changed files with 5 additions and 1 deletions

View File

@ -154,11 +154,15 @@ kubectl cluster-info
```
If you see a URL response, kubectl is correctly configured to access your cluster.
If you see a message similar to the following, kubectl is not correctly configured:
If you see a message similar to the following, kubectl is not correctly configured or not able to connect to a Kubernetes cluster.
```shell
The connection to the server <server-name:port> was refused - did you specify the right host or port?
```
For example, if you are intending to run a Kubernetes cluster on your laptop (locally), you will need a tool like minikube to be installed first and then re-run the commands stated above.
If kubectl cluster-info returns the url response but you can't access your cluster, to check whether it is configured properly, use:
```shell