Skip to content
Home
Dev Convert Generate Finance Calc Design Security Media

More categories

Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

GuidesBlogAPI & MCPCheatsheetsChangelog All categories

Browse

439 tools · 15 categories

Start here

Popular tools New this week 11 All tools 439

Categories

Developer Tools 91 Converters 65 Calculators 32 Finance Tools 32 Generators 31 Media Tools 27 Design Tools 25 Security Tools 25 Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

Guides Cheatsheets Blog REST API MCP server Changelog

No matches here.

Keep FindUtils free Sponsors fund new tools
  1. Cheatsheets
Guides Blog API & MCP
Sponsor
FindUtils
Sponsor
  1. Home
  2. Cheatsheets
  3. DevOps & Cloud
  4. Kubernetes Commands

DevOps & Cloud · Cheatsheet

Kubernetes Commands Cheatsheet

kubectl essentials: pods, deployments, services, secrets, scaling, debugging, and RBAC

72 commands 9 sections

On this sheet

Cluster & Context 9 Pod Management 10 Deployments 10 Services & Networking 8 ConfigMaps & Secrets 8 Namespaces & RBAC 7 Logs & Debugging 10 Scaling & Apply 9 Sources 1
Try it in the browser Validate and format YAML files with syntax checking for Kubernetes and DevOps. Open YAML Validator

No entry matches that filter.

Cluster & Context

  • kubectl cluster-info Display cluster endpoint and services info
  • kubectl config view Show merged kubeconfig settings
  • kubectl config current-context Show the current context
  • kubectl config use-context <ctx> Switch to a different context
  • kubectl config get-contexts List all available contexts
  • kubectl config set-context --current --namespace=<ns> Set default namespace for current context
  • kubectl get nodes List all nodes in the cluster
  • kubectl get nodes -o wide List nodes with extra details (IP, OS, etc.)
  • kubectl api-resources List all supported resource types

Pod Management

  • kubectl get pods List pods in current namespace
  • kubectl get pods -A List pods across all namespaces
  • kubectl get pods -o wide List pods with node and IP info
  • kubectl get pods -w Watch pods in real-time
  • kubectl describe pod <name> Show detailed info about a pod
  • kubectl run <name> --image=<img> Create and run a pod from an image
  • kubectl delete pod <name> Delete a specific pod
  • kubectl delete pod <name> --force --grace-period=0 Force delete a stuck pod
  • kubectl exec -it <pod> -- bash Open shell in a running pod
  • kubectl cp <pod>:<path> <local> Copy files from pod to local machine

Deployments

  • kubectl get deployments List all deployments
  • kubectl describe deployment <name> Show deployment details and events
  • kubectl create deployment <name> --image=<img> Create a deployment
  • kubectl set image deployment/<name> <ctr>=<img>:<tag> Update container image in deployment
  • kubectl rollout status deployment/<name> Watch rollout progress
  • kubectl rollout history deployment/<name> Show rollout revision history
  • kubectl rollout undo deployment/<name> Rollback to previous revision
  • kubectl rollout undo deployment/<name> --to-revision=<n> Rollback to specific revision
  • kubectl rollout restart deployment/<name> Restart all pods in deployment
  • kubectl delete deployment <name> Delete a deployment

Services & Networking

  • kubectl get svc List all services
  • kubectl get svc -A List services across all namespaces
  • kubectl describe svc <name> Show service details and endpoints
  • kubectl expose deployment <name> --port=80 --type=LoadBalancer Expose deployment as a service
  • kubectl port-forward svc/<name> 8080:80 Forward local port to service
  • kubectl port-forward pod/<name> 8080:80 Forward local port to pod
  • kubectl get ingress List all ingress resources
  • kubectl get endpoints <svc> Show pod IPs behind a service

ConfigMaps & Secrets

  • kubectl get configmaps List all ConfigMaps
  • kubectl create configmap <name> --from-file=<path> Create ConfigMap from file
  • kubectl create configmap <name> --from-literal=key=val Create ConfigMap from literal values
  • kubectl get secrets List all secrets
  • kubectl create secret generic <name> --from-literal=k=v Create a generic secret
  • kubectl create secret tls <name> --cert=tls.crt --key=tls.key Create a TLS secret
  • kubectl get secret <name> -o jsonpath="{.data.key}" | base64 -d Decode and view a secret value
  • kubectl describe configmap <name> Show ConfigMap contents and metadata

Namespaces & RBAC

  • kubectl get namespaces List all namespaces
  • kubectl create namespace <name> Create a new namespace
  • kubectl delete namespace <name> Delete a namespace and all its resources
  • kubectl get all -n <namespace> List all resources in a namespace
  • kubectl get serviceaccounts List service accounts
  • kubectl auth can-i <verb> <resource> Check if current user can perform action
  • kubectl auth can-i --list List all permissions for current user

Logs & Debugging

  • kubectl logs <pod> Show logs for a pod
  • kubectl logs <pod> -f Follow (stream) pod logs
  • kubectl logs <pod> -c <container> Show logs for specific container in pod
  • kubectl logs <pod> --previous Show logs from previous crashed container
  • kubectl logs -l app=<label> Show logs for all pods matching label
  • kubectl describe pod <name> Show events and status (debug crashes)
  • kubectl get events --sort-by=.metadata.creationTimestamp List cluster events sorted by time
  • kubectl top pods Show CPU/memory usage per pod
  • kubectl top nodes Show CPU/memory usage per node
  • kubectl debug <pod> -it --image=busybox Attach debug container to a pod

Scaling & Apply

  • kubectl scale deployment/<name> --replicas=3 Scale deployment to 3 replicas
  • kubectl autoscale deployment/<name> --min=2 --max=10 --cpu-percent=80 Create HorizontalPodAutoscaler
  • kubectl get hpa List Horizontal Pod Autoscalers
  • kubectl apply -f <file.yaml> Apply config from YAML file
  • kubectl apply -f <directory>/ Apply all YAML files in directory
  • kubectl diff -f <file.yaml> Preview changes before applying
  • kubectl delete -f <file.yaml> Delete resources defined in YAML file
  • kubectl get <resource> -o yaml Export resource definition as YAML
  • kubectl explain <resource> Show documentation for a resource type

Sources

  • https://kubernetes.io/docs/reference/kubectl/ Kubernetes kubectl reference: resource operations, configuration, and generated command help.

Related cheatsheets

  • Docker Commands54 commands
  • Apache HTTP Server64 commands
  • Nginx Server69 commands

Guides that use these commands

  • Cron to systemd: Convert Crontab to Timers and CronJobsGuide · 5 min read
  • Cron Expression Generator: Build and Check Five-Field SchedulesGuide · 6 min read
  • Yolobox Configurator: Generate AI Sandbox Configs in SecondsGuide · 10 min read

Tools for this work

  • YAML ValidatorValidate and format YAML files with syntax checking for Kubernetes and DevOps.

From FindUtils

More to explore

Products and services from the team behind FindUtils.

Promote your tool
Featured product seeranks.com SeeRanks — transparent product discovery A public ranking board where paid placement is always labeled and every product keeps its earned position. View SeeRanks Public rank board #1 Sponsored #2 #3 #4 Paid placement is always labeled Free favicon tool emojifavicons.com Emoji Favicons Turn any emoji into a favicon with one HTML line. SVG, PNG or ICO, no sign-up. <link rel="icon" href=".../🦊.svg"> Create a favicon
FindUtils service findutils.com Articles for software tools A sourced article for your channels, or a sponsored FindUtils publication with editorial review. Compare packages Domain portfolio findutils.com Domain names for sale .com.dev.sh.app.io Unused names across dev tools, AI, PDF and commerce. Make an offer. Browse the list Playable ranking towerscore.io TowerScore — stack the skyline Play to climb, or buy a floor. Paid floors are labeled. Open TowerScore

Missing a tool you need?

Tell us what to build next. Most requests ship as a free browser tool, an API endpoint and an MCP tool.

Request a tool
FindUtils

Free, fast utilities. Most tools process your files in the browser; lookup tools say what they send, and pages load analytics and ads.

  • No sign-up for free tools
  • Most tools run in your browser
  • 369 tools on the REST API, 369 on MCP

Tools

DevelopersConvertPDFDesignSecurityAll tools →

Learn

GuidesBlogCheatsheetsChangelog

Build

REST APIMCP serverAPI referenceWorkflowsStatus

FindUtils

AboutLibraries we useSponsorRequest a toolDomains for saleContact
© 2026 FindUtils PrivacyTermsSitemap
Service status
FindUtils

Free, fast utilities that respect your data. Most tools run in your browser.

Build with it

REST APIMCP serverGuidesChangelog

FindUtils

AboutSponsorPrivacyContact
Theme
© 2026 FindUtils Terms
FindUtils
Guides Blog REST API MCP server Changelog

Categories

Developers 91 Convert 65 Calculate 32 Finance 32 Generate 31 Media 27
All 15 categories →

Keep it free

Sponsorship keeps every tool free and funds the new ones we ship each week.

Sponsor Back the project
Tools API Sponsor