TechHelper icon
TechHelper icon

Kubernetes Commands Quick Reference

View Kubernetes config
kubectl config view
Set active namespace
kubectl config set-context --current --namespace=namespace_name
List all services in the namespace
kubectl get services
List all pods in all namespaces in wide format
kubectl get pods -o wide --all-namespaces
List all pods in json format
kubectl get pods -o json
Describe node details
kubectl describe nodes <node>
Describe pod details
kubectl describe pod <pod>
Describe service details
kubectl describe svc <service>
List pods sorted by restart count
kubectl get pods --sort-by='.status.containerStatuses[0].restartCount'
Create resources: pods, services or daemonsets
kubectl create -f ./my-manifest.yaml

Commands Cheat Sheet

A vast collection of cheatsheets from popular tools and technologies with quick search functionlity and customizability


Search for any commands from the list of tools and technologies as a whole from the All section or dedicated sections for each tool.


Cheat sheets or commands from Docker, Kubernetes, Kafka, Redis, Git, Curl, SSH & SCP, Helm are provided. More will be added shorly.


The command subsection is provided on the top right corner

Add new commands

Add new commands by clicking on the "Add New Command" button. In the wizard which opens up, select any exisitng categories or type (and press enter) to add new categories. Add subsections if needed in the next step. In the next step, add a meaningful description of the command which would help in searching. In the final step, enter the command you want to save.
Newly created categories would be added as buttons along with the existing categories.

Copy Command

You can copy the command to clipboard by clicking on the Copy button.

Show more

By default 10 query results are shown in the page. If more are present, the Show More button is displayed and on clicking, the entire results are shown.

techHelperFree tool box for developers and testers

Copyright © 2024 TechHelper. All Rights Reserved.