Using kubectl CLI

kubectl is the primary command-line tool to interact with a Kubernetes cluster.

Common Commands:

  • kubectl get pods - Lists all pods
  • kubectl describe pod <pod-name> - Detailed pod info
  • kubectl apply -f <file.yaml> - Applies a configuration
  • kubectl delete pod <pod-name> - Deletes a pod

View Cluster Info:

kubectl cluster-info
kubectl get nodes
← PrevNext →