Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
February 19, 2021 09:50 am GMT

Here is the package manager for k8s : krew

Concepts

Krew is a tool that makes it easy to use kubectl plugins. Krew helps you discover plugins, install and manage them on your machine. It is similar to tools like apt, dnf or brew. Today, over 100 kubectl plugins are available on Krew.

Quick start

Installation (Linux/macOS)

  • Install krew with this command line :
(  set -x; cd "$(mktemp -d)" &&  curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/krew.tar.gz" &&  tar zxvf krew.tar.gz &&  KREW=./krew-"$(uname | tr '[:upper:]' '[:lower:]')_$(uname -m | sed -e 's/x86_64/amd64/' -e 's/arm.*$/arm/' -e 's/aarch64$/arm64/')" &&  "$KREW" install krew)
Enter fullscreen mode Exit fullscreen mode
  • Then export it in environment variable :
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
Enter fullscreen mode Exit fullscreen mode

Plugins

Alt Text

https://krew.sigs.k8s.io/plugins/

You can install plugins with this command line :

kubectl krew install <PLUGIN_NAME>
Enter fullscreen mode Exit fullscreen mode

Example :

kubectl krew install access-matrixkubectl access-matrix
Enter fullscreen mode Exit fullscreen mode

Popular Plugins :

kubectl krew install popeyekubectl krew install scorekubectl krew install ctxkubectl krew install ns
Enter fullscreen mode Exit fullscreen mode

Link

https://github.com/kubernetes-sigs/krew


Original Link: https://dev.to/javidjms/here-is-the-package-manager-for-k8s-krew-4mmm

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To