Skip to content

kubectl

Course: Kubernetes Part 1 - chapter 6

kubectl is a command-line tool for interacting with Kubernetes clusters. It provides a way to communicate with the Kubernetes API server and manage Kubernetes resources.

https://kubernetes.io/docs/tasks/tools/#kubectl

kubectl get nodes
kubectl get pods

If you want to see the exact HTTP request that goes out to the API server, you can add --v=8 flag

kubectl get nodes --v=8