merge master to 1.10, with fixes (#7682)
This commit is contained in:
committed by
k8s-ci-robot
parent
bb8c59a640
commit
44b51d6056
@@ -1,5 +1,5 @@
|
||||
---
|
||||
approvers:
|
||||
reviewers:
|
||||
- bgrant0607
|
||||
- mikedanese
|
||||
title: Install and Set Up kubectl
|
||||
@@ -120,7 +120,7 @@ kubectl is available as a [snap](https://snapcraft.io/) application.
|
||||
install-kubectl.ps1 [-DownloadLocation <path>]
|
||||
|
||||
If no Downloadlocation is specified, kubectl will be installed in users temp Directory
|
||||
2. The installer creates $HOME/.kube and instucts to create a config file
|
||||
2. The installer creates $HOME/.kube and instructs it to create a config file
|
||||
3. Updating
|
||||
re-run Install-Script to update the installer
|
||||
re-run install-kubectl.ps1 to install latest binaries
|
||||
@@ -137,7 +137,7 @@ re-run install-kubectl.ps1 to install latest binaries
|
||||
cd C:\users\yourusername (Or wherever your %HOME% directory is)
|
||||
mkdir .kube
|
||||
cd .kube
|
||||
touch config
|
||||
New-Item config -type file
|
||||
|
||||
Edit the config file with a text editor of your choice, such as Notepad for example.
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -21,8 +21,7 @@ VT-x or AMD-v virtualization must be enabled in your computer's BIOS.
|
||||
If you do not already have a hypervisor installed, install one now.
|
||||
|
||||
* For OS X, install
|
||||
[xhyve driver](https://git.k8s.io/minikube/docs/drivers.md#xhyve-driver),
|
||||
[VirtualBox](https://www.virtualbox.org/wiki/Downloads), or
|
||||
[VirtualBox](https://www.virtualbox.org/wiki/Downloads) or
|
||||
[VMware Fusion](https://www.vmware.com/products/fusion), or
|
||||
[HyperKit](https://github.com/moby/hyperkit).
|
||||
|
||||
|
||||
Reference in New Issue
Block a user