Skip to content

Commit 1dc0e0f

Browse files
authored
Merge pull request #27467 from eddiezane/ez/remove-kubectl-psgallery
Remove out of date PSGallery kubectl install instructions
2 parents 5fd397e + 0349ac0 commit 1dc0e0f

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

content/en/docs/tasks/tools/install-kubectl-windows.md

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ Using the latest version of kubectl helps avoid unforeseen issues.
2121
The following methods exist for installing kubectl on Windows:
2222

2323
- [Install kubectl binary with curl on Windows](#install-kubectl-binary-with-curl-on-windows)
24-
- [Install with PowerShell from PSGallery](#install-with-powershell-from-psgallery)
2524
- [Install on Windows using Chocolatey or Scoop](#install-on-windows-using-chocolatey-or-scoop)
2625
- [Install on Windows as part of the Google Cloud SDK](#install-on-windows-as-part-of-the-google-cloud-sdk)
2726

@@ -76,33 +75,6 @@ The following methods exist for installing kubectl on Windows:
7675
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`.
7776
{{< /note >}}
7877

79-
### Install with PowerShell from PSGallery
80-
81-
If you are on Windows and using the [PowerShell Gallery](https://www.powershellgallery.com/) package manager, you can install and update kubectl with PowerShell.
82-
83-
1. Run the installation commands (making sure to specify a `DownloadLocation`):
84-
85-
```powershell
86-
Install-Script -Name 'install-kubectl' -Scope CurrentUser -Force
87-
install-kubectl.ps1 [-DownloadLocation <path>]
88-
```
89-
90-
{{< note >}}
91-
If you do not specify a `DownloadLocation`, `kubectl` will be installed in the user's `temp` Directory.
92-
{{< /note >}}
93-
94-
The installer creates `$HOME/.kube` and instructs it to create a config file.
95-
96-
1. Test to ensure the version you installed is up-to-date:
97-
98-
```powershell
99-
kubectl version --client
100-
```
101-
102-
{{< note >}}
103-
Updating the installation is performed by rerunning the two commands listed in step 1.
104-
{{< /note >}}
105-
10678
### Install on Windows using Chocolatey or Scoop
10779

10880
1. To install kubectl on Windows you can use either [Chocolatey](https://chocolatey.org) package manager or [Scoop](https://scoop.sh) command-line installer.

0 commit comments

Comments
 (0)