Chapter 7: Working with kubectl Plugins
In the previous chapter, we learned how to do various operations with kubectl
, such as listing nodes and pods and checking logs. In this chapter, let's learn how to extend the kubectl
command base with plugins. kubectl
has many commands but might not always have the ones you want, and, in such instances, we need to use plugins. We will learn how to install kubectl
plugins in order to have more features with extra sub-commands. We will see how to use those plugins, and finally, we will see how we can create a basic plugin for kubectl
.
In this chapter, we're going to cover the following main topics:
- Installing plugins
- Using plugins
- Creating basic plugin