Kubectl krew plugin
Krew is a kubectl plugin manager. With Krew you can discover, install and manage kubectl plugins.
Install Krew following the instructions in the official documentation
- Listing the plugin available
kubectl krew search
- Getting plugin info (we consider the plugin named tree in this example)
This plugin shows sub-resources of a specified Kubernetes API object in a
tree view in the command-line
kubectl krew info tree
- Installing a plugin
kubectl krew install tree
- Using the plugin
Calling a plugin is done with the command kubectl krew PLUGIN_NAME ARGS
kubectl krew tree deploy www