From 1764455d71ee6826a458b720aa4cd21dcc69874b Mon Sep 17 00:00:00 2001 From: Jose Blanquicet Date: Wed, 5 Apr 2023 12:03:53 -0500 Subject: [PATCH] readme: Add krew installation --- README.md | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 30ddd05..31c00e6 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,18 @@ to the commands using the `--id` flag or separately with the `--subscription`, There is multiple ways to install the `kubectl-aks`. +### Using krew + +[krew](https://sigs.k8s.io/krew) is the recommended way to install `kubectl-aks`. +You can follow the [krew's +quickstart](https://krew.sigs.k8s.io/docs/user-guide/quickstart/) to install it +and then install `kubectl-aks` by executing the following command: + +```bash +kubectl krew install aks +kubectl aks version +``` + ### Install a specific release It is possible to download the asset for a given release and platform from the @@ -39,7 +51,7 @@ It is possible to download the asset for a given release and platform from the move the `kubectl-aks` executable to any folder in your `$PATH`. ```bash -VERSION=v0.1.0 +VERSION=v0.2.0 curl -sL https://github.com/azure/kubectl-aks/releases/latest/download/kubectl-aks-linux-amd64-${VERSION}.tar.gz | sudo tar -C /usr/local/bin -xzf - kubectl-aks kubectl aks version ```