kubectl is a command-line interface for running commands against Kubernetes clusters. In fact, this is the command used most often when working with Kubernetes. In Chapter 8, Using Kubernetes with Java, we will go through the command's syntax and possible usages. Using kubectl, you will be interacting with your cluster. Of course, having the API exposed by the Master node and the API server, we could do it using an HTTP client of our choice, but using kubectl is a lot faster and more convenient. kubectl provides a lot of functionalities, such as listing resources, showing detailed information about the resources, prints log, managing cluster, and executing commands on a container in a Pod.