All Shortcuts

Kubernetes (kubectl) Shortcuts & Commands — Complete Cheat Sheet (5)

Complete kubectl commands cheat sheet for Kubernetes cluster management. Covers pod operations, deployments, services, contexts, and namespace management.

Search all Kubernetes (kubectl) shortcuts interactively

Interactive Shortcut Finder

All Kubernetes (kubectl) Shortcuts

View Resources

ShortcutActionDescription
kubectl get podsList podsList pods in current namespace.
kubectl get svcList servicesList services.
kubectl get nodesList nodesList cluster nodes.
kubectl get allAll resourcesList all resources.

Context & Namespace

ShortcutActionDescription
kubectl config get-contextsList contextsShow available contexts.

Pro Tips

Frequently Asked Questions

How do I list all pods in Kubernetes?

Use 'kubectl get pods' for the current namespace, or 'kubectl get pods --all-namespaces' for all namespaces.

How do I get a shell inside a running pod?

Use 'kubectl exec -it pod-name -- /bin/bash' to open an interactive shell.

How do I view pod logs in Kubernetes?

Use 'kubectl logs pod-name' for logs, add '-f' to follow, or '--previous' for logs from a crashed container.

How do I scale a deployment?

Use 'kubectl scale deployment name --replicas=3' to change the number of pod replicas.

Browse shortcuts for 230 platforms

Explore All