kubectl installing krew plugins

Krew is a plugin manager which allows us to download and use plugins and extend current functionality of kubectl. 

To install on bash, run the following command :-

(
  set -x; cd "$(mktemp -d)" &&
  OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
  ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
  KREW="krew-${OS}_${ARCH}" &&
  curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" &&
  tar zxvf "${KREW}.tar.gz" &&
  ./"${KREW}" install krew
)

And remember to add this to your path 

export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"


Then run this to update, 

kubectl krew update

Next run this to list plugins 

kubectl krew list 



Comments

Popular posts from this blog

mongosh install properly

gemini cli getting file not defined error

vllm : Failed to infer device type