Skip to content

Commit

Permalink
Merge pull request kubernetes#39298 from asarenkansah/kubectl-windows…
Browse files Browse the repository at this point in the history
…-cleanup

Add cleanup commands to kubectl Windows install
  • Loading branch information
k8s-ci-robot authored Feb 10, 2023
2 parents 5a9b2b3 + 18f27a0 commit 3f51242
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions content/en/docs/tasks/tools/install-kubectl-windows.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,12 @@ The following methods exist for installing kubectl on Windows:
kubectl version --client --output=yaml
```

1. After installing the plugin, clean up the installation files:

```powershell
del kubectl.exe kubectl.exe.sha256
```

{{< note >}}
[Docker Desktop for Windows](https://docs.docker.com/docker-for-windows/#kubernetes) adds its own version of `kubectl` to `PATH`.
If you have installed Docker Desktop before, you may need to place your `PATH` entry before the one added by the Docker Desktop installer or remove the Docker Desktop's `kubectl`.
Expand Down Expand Up @@ -191,6 +197,12 @@ Below are the procedures to set up autocompletion for PowerShell.

If you do not see an error, it means the plugin is successfully installed.

1. After installing the plugin, clean up the installation files:

```powershell
del kubectl-convert.exe kubectl-convert.exe.sha256
```

## {{% heading "whatsnext" %}}

{{< include "included/kubectl-whats-next.md" >}}

0 comments on commit 3f51242

Please sign in to comment.