Kubectl Plugins
Extend kubeclt with plugins
Warning
This documentation is deprecated, please check here for its new home
Krew is the package manager for kubectl plugins.
For installation on your workstation you can follow the upstream documentation. In lxplus8 you can setup your environment like below and update your shell rc as shown on the command output.
$ krew install krew
Adding "default" plugin index from https://github.com/kubernetes-sigs/krew-index.git.
Updated the local copy of plugin index.
Installing plugin: krew
Installed plugin: krew
\
| Use this plugin:
| kubectl krew
| Documentation:
| https://krew.sigs.k8s.io/
| Caveats:
| \
| | krew is now installed! To start using kubectl plugins, you need to add
| | krew's installation directory to your PATH:
| |
| | * macOS/Linux:
| | - Add the following to your ~/.bashrc or ~/.zshrc:
| | export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH"
| | - Restart your shell.
| |
| | * Windows: Add %USERPROFILE%\.krew\bin to your PATH environment variable
| |
| | To list krew commands and to get help, run:
| | $ kubectl krew
| | For a full list of available plugins, run:
| | $ kubectl krew search
| |
| | You can find documentation at
| | https://krew.sigs.k8s.io/docs/user-guide/quickstart/.
| /
/
You can search and install plugin at your home directory.
$ kubectl krew search mtail
NAME DESCRIPTION INSTALLED
mtail Tail logs from multiple pods matching label sel... no
$ kubectl krew install mtail
Updated the local copy of plugin index.
Installing plugin: mtail
Installed plugin: mtail
\
| Use this plugin:
| kubectl mtail
| Documentation:
| https://gitlab.com/grzesuav/kubectl-mtail
| Caveats:
| \
| | This plugin needs the following programs:
| | * jq
| /
/
WARNING: You installed plugin "mtail" from the krew-index plugin repository.
These plugins are not audited for security by the Krew maintainers.
Run them at your own risk.
Last update: June 1, 2022