From 783de986d9a1306dfd356241325b18b6593606b8 Mon Sep 17 00:00:00 2001 From: Onuralp Taner Date: Tue, 6 Jun 2017 23:17:33 +0300 Subject: [PATCH] Add Chocolatey Package Manager for Windows (#4000) * Add Chocolatey Package Manager for Windows * Small grammar changes --- docs/tasks/tools/install-kubectl.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/tasks/tools/install-kubectl.md b/docs/tasks/tools/install-kubectl.md index 7932339725..0bccfa05dc 100644 --- a/docs/tasks/tools/install-kubectl.md +++ b/docs/tasks/tools/install-kubectl.md @@ -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/).