Add option to install kubectl on Windows via scoop (#12359)
* Add option to install kubectl via scoop * Review suggestions * Fixed tab rendering * Fixed list numbering
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
adb49b24f9
commit
e7626d7687
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user