kubectl get podsList pods
kubectl get pods -o wideList pods with more info
kubectl get pods --all-namespacesList all pods
kubectl get servicesList services
kubectl get deploymentsList deployments
kubectl get nodesList nodes
kubectl describe pod <name>Show pod details
kubectl logs <pod>Show pod logs
kubectl logs -f <pod>Follow pod logs
kubectl exec -it <pod> bashOpen shell in pod
kubectl apply -f file.yamlApply config
kubectl create -f file.yamlCreate resource
kubectl delete -f file.yamlDelete resource
kubectl delete pod <name>Delete pod
kubectl delete svc <name>Delete service
kubectl edit deploy <name>Edit deployment
kubectl scale deploy <name> --replicas=3Scale deployment
kubectl rollout restart deploy <name>Restart deployment
kubectl rollout status deploy <name>Check rollout status
kubectl rollout undo deploy <name>Undo rollout
kubectl top nodesShow node metrics
kubectl top podsShow pod metrics
kubectl config viewShow config
kubectl config use-context <ctx>Switch context
kubectl config set-context --current --namespace=nsSet namespace
kubectl get events --sort-by=.metadata.creationTimestampShow events
kubectl port-forward <pod> 8080:80Forward port
kubectl cp local pod:/pathCopy file to pod
kubectl auth can-i list podsCheck permissions
kubectl cluster-infoShow cluster info
kubectl versionShow version