Kubernetes Cheat Sheet
Transform, format, and optimize your data instantly with this free client-side tool.
Cluster Information
Display addresses of the master and services
Print the client and server version information
List all nodes in the cluster
Show detailed information about a node
Pods
List all pods in the current namespace
List all pods in all namespaces
Watch pods for changes
Show details of a specific pod
Delete a pod
Start a single instance of a pod
Deployments
List deployments
Show details of a deployment
Create a new deployment
Scale a deployment
Update the image of a deployment
Check the rollout status
Rollback to the previous deployment version
Services
List all services in the namespace
Show details of a service
Expose a deployment as a service
Delete a service
Namespaces
List all namespaces
Create a namespace
Set the default namespace for the current context
Delete a namespace (and all resources within it)
Troubleshooting
Print the logs for a pod
Follow the logs for a pod
Print the logs for a specific container in a pod
Get an interactive shell on a running pod
Show metrics for all pods in the default namespace
Show metrics for all nodes
Config & Secrets
List configmaps
Create a configmap
List secrets
Create a secret
Declarative Config
Apply a configuration file
Delete resources defined in a configuration file
Advanced
List recent cluster events sorted by time
Open shell inside a running pod
Forward local port 8080 to service port 80
🔥 Similar Tools
Explore LibraryFrequently Asked Questions
Got questions? We've got answers.