Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

CommandDescription

kubectl cluster-info

Display Cluster Info
kubectl config viewDisplay Config


kubectl get pods

List all running pods
kubectl get servicesList all services
kubectl get nodesList all nodes

kubectl get deployments

Deployments view
kubectl get rcList replication controllers

kubectl get pods -o wide

List all pods in ps output format with more information (such as node name).

kubectl get pods --all-namespaces

List all pods in all namespaces


kubectl logs <pod>

Display the logs for a service
kubectl logs -f <pod>Display the logs for a service

kubectl logs <system_pod> -n kube-system <system_pod>

Display logs for a system pod

kubectl exec -ti <POD-ID-HERE> bash -n kube-system

Log into a system pod




...