From 7c25ef9252bc5e922a9f96d6940c01794b8e5da7 Mon Sep 17 00:00:00 2001 From: Karsten Bott Date: Fri, 26 Jan 2018 15:21:34 +0100 Subject: [PATCH] added installation via Powershell Gallery (#6086) * added kubectl installation via PSGallery kubectl Installation via PSGallery for Powershell Windows Package Manager * Update install-kubectl.md --- docs/tasks/tools/install-kubectl.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/docs/tasks/tools/install-kubectl.md b/docs/tasks/tools/install-kubectl.md index fff71a70c9..7bf9190a1a 100644 --- a/docs/tasks/tools/install-kubectl.md +++ b/docs/tasks/tools/install-kubectl.md @@ -112,6 +112,19 @@ kubectl is available as a [snap](https://snapcraft.io/) application. 2. Run `kubectl version` to verify that the version you've installed is sufficiently up-to-date. +## Install with Powershell from PSGallery + +1. If you are on Windows and using [Powershell Gallery](https://www.powershellgallery.com/) package manager, you can install and update with: + + Install-Script -Name install-kubectl -Scope CurrentUser -Force + install-kubectl.ps1 [-DownloadLocation ] + +If no Downloadlocation is specified, kubectl will be installed in users temp Directory +2. The installer creates $HOME/.kube and instucts to create a config file +3. Updating +re-run Install-Script to update the installer +re-run install-kubectl.ps1 to install latest binaries + ## Install with Chocolatey on Windows 1. If you are on Windows and using [Chocolatey](https://chocolatey.org) package manager, you can install with: