© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
H. AgrawalKubernetes Fundamentalshttps://doi.org/10.1007/978-1-4842-9729-2_10

10. kubectl: The Command-Line Tool

Himanshu Agrawal1  
(1)
Pune, India
 

In this final chapter, we will discuss the command-line tool of Kubernetes, which is kubectl. You will understand what kubectl is and how it works. You will see the kubectl syntax and a broad categorization of kubectl commands. You will also understand kubeconfig, the configuration file of the Kubernetes cluster.

At the end, I will summarize important kubectl commands. This section will serve as a cheat sheet for the kubectl commands.

With those expectations in mind, let’s get started.

Fundamentals of kubectl ...

Get Kubernetes Fundamentals: A Step-by-Step Development and Interview Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.