Extending kubectl

As you probably already know, kubectl is the official tool to interact with Kubernetes from the command line. This tool, besides all the functionality that it already provides, allows us to extend its functionality through plugins.
A kubectl plugin is nothing but a file with the following three requirements:
- It has to be an executable (binary or script)
- It must be in your system’s PATH
- Its name must start with kubectl- (including the dash!)
The plugin system in kubectl was introduced as alpha in version 1.8.0 and it was rewritten in version 1.12.0, which is the minimum version recommended if you are going to play with this feature.

