Working with kubectl
Explore how to work with kubectl, the essential command-line interface for Kubernetes. Understand how kubectl interacts with the API server via kubeconfig files including clusters, users, and contexts. Learn to view and switch contexts to manage multiple Kubernetes environments efficiently.
We'll cover the following...
kubectl
kubectl is the Kubernetes command-line tool, and you’ll use it in all the hands-on examples. You’ll already have it if you’ve followed the instructions to install either of the clusters.
Type kubectl in a terminal window to check if you have it. If you don’t have it, search the web for install kubectl and follow the instructions for your system.
It’s important that your kubectl version is no more than one minor version higher or lower than your cluster. For example, if your cluster is running Kubernetes 1.29.x, your kubectl should be no lower than 1.28.x and ...