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


Delete deployment

kubectl delete deployment <deploymentname>

Delete service

kubectl delete service <servicename>

Delete every deployment in namespace

kubectl delete deployment --all