Add Chocolatey Package Manager for Windows (#4000)

* Add Chocolatey Package Manager for Windows

* Small grammar changes
This commit is contained in:
Onuralp Taner
2017-06-06 23:17:33 +03:00
committed by Andrew Chen
parent bec1399cc1
commit 783de986d9
+16
View File
@@ -106,6 +106,22 @@ brew install kubectl
```
2. Run `kubectl version` to verify that the verison you've installed is sufficiently up-to-date.
## Install with Chocolatey on Windows
1. If you are on Windows and using [Chocolatey](https://chocolatey.org) package manager, you can install with:
```shell
choco install kubernetes-cli
```
2. Run `kubectl version` to verify that the verison you've installed is sufficiently up-to-date.
3. Configure kubectl to use a remote kubernetes cluster:
```shell
cd C:\users\yourusername (Or wherever your %HOME% directory is)
mkdir .kube
cd .kube
touch config
```
Edit the config file with a text editor of your choice, such as Notepad for example.
## Configuring kubectl
In order for kubectl to find and access a Kubernetes cluster, it needs a [kubeconfig file](/docs/concepts/cluster-administration/authenticate-across-clusters-kubeconfig/), which is created automatically when you create a cluster using kube-up.sh or successfully deploy a Minikube cluster. See the [getting started guides](/docs/getting-started-guides/) for more about creating clusters. If you need access to a cluster you didn't create, see the [Sharing Cluster Access document](/docs/tasks/administer-cluster/share-configuration/).