Skip to main content

kubectl MAN Page

kubectl

The kubectl command is used to interact with and manage a Kubernetes cluster. It allows administrators and developers to deploy applications, inspect resources, manage cluster components, and view logs. Essentially, kubectl acts as the command-line interface (CLI) for communicating with the Kubernetes API server to control the state of the cluster.

View cluster nodes

kubectl get nodes

View cluster info

kubectl cluster-info

View pods

kubectl get pods

View pod info

kubectl describe pod podname

Deploy an application to the cluster

kubectl run applicationname

View all kuberenetes objects

kubectl get all