What is kubectl?
To interact with the Kubernetes API, you need a client. The tool kubectl is a command-line tool for interacting with Kubernetes clusters. It allows you to manage and control Kubernetes resources, such as pods, services, deployments, and more. With kubectl, you can perform various operations, including creating, updating, and deleting resources. The Kubernetes API is a REST API, which means that you can interact with it using any HTTP client. Since, you typically also have to deal with authentication and authorization, it is much easier to use a dedicated client like kubectl.
Note
Before diving into the content, we want to point out that if you are interested in SAP BTP, the Kyma runtime, and the kubectl command-line tool, you can find more detailed information in the Learning Journey: Delivering Side-by-Side Extensibility based on SAP BTP, Kyma runtime