Skip to content

Commit

Permalink
Add Chocolatey Package Manager for Windows (#4000)
Browse files Browse the repository at this point in the history
* Add Chocolatey Package Manager for Windows

* Small grammar changes
  • Loading branch information
onuralp authored and chenopis committed Jun 6, 2017
1 parent bec1399 commit 783de98
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/tasks/tools/install-kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/).
Expand Down

0 comments on commit 783de98

Please sign in to comment.