An Interest In:
Web News this Week
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
- March 26, 2024
February 19, 2021 09:50 am GMT
Original Link: https://dev.to/javidjms/here-is-the-package-manager-for-k8s-krew-4mmm
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
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
Original Link: https://dev.to/javidjms/here-is-the-package-manager-for-k8s-krew-4mmm
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To