Command line interface for running commands against Kubernetes clusters.

# To list all pods in all namespaces:
kubectl get pods --all-namespaces

# To list all pods with more information (such as node name):
kubectl get pods -o wide

# To update specified pod with the label 'unhealthy' and the value 'true':
kubectl label pods <name> unhealthy=true

# To list all resources with different types:
kubectl get all

# To show metrics for all nodes:
kubectl top node

# To show metrics for all pods in the default namespace:
kubectl top pod

# To print the address of the master and cluster services:
kubectl cluster-info