Skip to main content

Basic quick commands

Get all nodes

kubectl get nodes

Get cluster details

kubectl cluster-info

Get all pods

kubectl get pods --all-namespaces

Get all deployments

kubectl get deployments --all-namespaces

Get all namespaces

kubectl get namespaces

Create

deployment

kubectl create deployment <deploymentname> --image=<imagename>:<imageversion>