Skip to content

Commit

Permalink
Add option to install kubectl on Windows via scoop (#12359)
Browse files Browse the repository at this point in the history
* Add option to install kubectl via scoop

* Review suggestions

* Fixed tab rendering

* Fixed list numbering
  • Loading branch information
goostleek authored and k8s-ci-robot committed Feb 13, 2019
1 parent adb49b2 commit e7626d7
Showing 1 changed file with 18 additions and 11 deletions.
29 changes: 18 additions & 11 deletions content/en/docs/tasks/tools/install-kubectl.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,32 +122,39 @@ If you are on Windows and using [Powershell Gallery](https://www.powershellgalle
Updating the installation is performed by rerunning the two commands listed in step 1.
{{< /note >}}
## Install with Chocolatey on Windows
## Install on Windows using Chocolatey or scoop
If you are on Windows and using [Chocolatey](https://chocolatey.org) package manager, you can install kubectl with Chocolatey.
To install kubectl on Windows you can use either [Chocolatey](https://chocolatey.org) package manager or [scoop](https://scoop.sh) command-line installer.
{{< tabs name="kubectl_win_install" >}}
{{% tab name="choco" %}}
1. Run the installation command:
```
choco install kubernetes-cli
```
{{% /tab %}}
{{% tab name="scoop" %}}
scoop install kubectl
{{% /tab %}}
{{< /tabs >}}
2. Test to ensure the version you installed is sufficiently up-to-date:
```
kubectl version
```
3. Change to your %HOME% directory:
For example: `cd C:\users\yourusername`
3. Navigate to your home directory:
4. Create the .kube directory:
```
cd %USERPROFILE%
```
4. Create the `.kube` directory:
```
mkdir .kube
```
5. Change to the .kube directory you just created:
5. Change to the `.kube` directory you just created:
```
cd .kube
Expand Down

0 comments on commit e7626d7

Please sign in to comment.