This article shows how to install kubectl on a Windows machine and connect to a remote Kubernetes cluster.
Open PowerShell as administrator and run the following:
Install-Script -Name install-kubectl -Scope CurrentUser -Force
This will download the installation files to Windows PowerShell script folder of the current user. In my case it is: C:\Users\vineetha\Documents\WindowsPowerShell\Scripts
Now browse to the above location in Powershell and execute the install-kubectl.ps1 file.
install-kubectl.ps1 [-DownloadLocation <path>]
Note: If you do not specify a
DownloadLocation
, kubectl
will be installed in the user's temp directory.