This content originally appeared on DEV Community and was authored by Javid Mougamadou
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
)
- Then export it in environment variable :
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
Plugins
https://krew.sigs.k8s.io/plugins/
You can install plugins with this command line :
kubectl krew install <PLUGIN_NAME>
Example :
kubectl krew install access-matrix
kubectl access-matrix
Popular Plugins :
kubectl krew install popeye
kubectl krew install score
kubectl krew install ctx
kubectl krew install ns
Link
https://github.com/kubernetes-sigs/krew
This content originally appeared on DEV Community and was authored by Javid Mougamadou
Javid Mougamadou | Sciencx (2021-02-19T09:50:16+00:00) Here is the package manager for k8s : krew. Retrieved from https://www.scien.cx/2021/02/19/here-is-the-package-manager-for-k8s-krew/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.