Cluster Info
kubectl cluster-infoDisplay cluster information
kubectl get nodesList all nodes in the cluster
kubectl get namespacesList all namespaces
kubectl config get-contextsList available contexts
Pod Management
kubectl get podsList pods in current namespace
kubectl get pods -AList pods in all namespaces
kubectl describe pod <pod>Show details of a pod
kubectl logs <pod>Print container logs
kubectl exec -it <pod> -- bashExecute command in pod
kubectl delete pod <pod>Delete a pod
Deployments & Services
kubectl get deploymentsList all deployments
kubectl get servicesList all services
kubectl apply -f <file>.yamlApply a configuration file
kubectl scale deployment <name> --replicas=3Scale a deployment
kubectl rollout status deployment/<name>Check rollout status