All Apps

Kubernetes Command Helper

Client-SideOffline ReadyDev ToolsNo login required

Interactive kubectl command builder, emergency playbooks, resource short names, and troubleshooting generator for Kubernetes developers.

Global Modifiers:
Namespace:
Output:
Parameters auto-sync across all commands in real time.

Pods & Containers

Inspect, debug, stream logs, and manage running container instances.

9 commands

List All Pods in Namespace

Display all running, completed, or failed pods with status and restarts.

kubectl get pods

List Pods Across All Namespaces

Display pods from all namespaces in the entire cluster.

kubectl get pods -A

Describe Pod Details & Events

Show comprehensive lifecycle events, health probes, image tags, and error logs.

kubectl describe pod my-app-pod

Live Stream Pod Logs

Follow real-time standard output and error streams from a pod container.

kubectl logs -f my-app-pod --tail=100

View Previous Crashed Container Logs

Read logs from a terminated or crashed container before it was restarted.

kubectl logs my-app-pod --previous

Open Interactive Shell in Container

Attach an interactive TTY shell into a running container for direct troubleshooting.

kubectl exec -it my-app-pod -- /bin/sh

Show Pod CPU and Memory Usage

Display real-time CPU (millicores) and RAM (MiB) utilization (requires Metrics Server).

kubectl top pod my-app-pod --containers

Force Delete Pod Immediately

Instantly purge a dead or hanging pod from the cluster state without waiting.

kubectl delete pod my-app-pod --grace-period=0 --force

Copy File to/from Pod Container

Securely transfer files or directories between your local machine and a pod.

kubectl cp ./local-file.txt my-app-pod:/tmp/remote-file.txt

Deployments & Rollouts

Manage replica counts, zero-downtime rolling updates, and rollbacks.

9 commands

List Deployments

List current deployments along with desired, up-to-date, and available replicas.

kubectl get deployments

Create New Deployment

Provision a managed deployment running the specified container image.

kubectl create deployment web-service --image=nginx:alpine

Scale Deployment Replicas

Adjust the count of active container replicas up or down instantly.

kubectl scale deployment web-service --replicas=3

Trigger Zero-Downtime Rolling Restart

Gracefully redeploy all pods one by one, picking up updated configmaps or images.

kubectl rollout restart deployment/web-service

Watch Rollout Status in Real Time

Block until all updated replicas are successfully ready and healthy.

kubectl rollout status deployment/web-service

Rollback to Previous Revision

Instantly revert a bad deployment to its previous stable revision.

kubectl rollout undo deployment/web-service

Update Deployment Container Image

Update container image version without modifying YAML files directly.

kubectl set image deployment/web-service app=nginx:alpine

Pause Deployment Rollout

Freeze rolling updates while making multiple configuration changes.

kubectl rollout pause deployment/web-service

Resume Paused Deployment

Resume rolling update execution after completing paused adjustments.

kubectl rollout resume deployment/web-service

Services & Networking

Configure service discovery, port forwarding, and ingress routes.

5 commands

List Services and Ingresses

Show cluster IPs, external load balancers, node ports, and ingress rules.

kubectl get svc,ingress

Port-Forward Service to Local Machine

Tunnel remote Kubernetes service traffic directly into your local workstation port.

kubectl port-forward svc/web-service 8080:80

Expose Deployment as ClusterIP/NodePort/LoadBalancer

Automatically create a Kubernetes Service routing traffic to deployment pods.

kubectl expose deployment web-service --type=ClusterIP --port=80 --target-port=8080

Inspect Service Endpoints

Inspect active target pod IP addresses mapped behind a Service.

kubectl get endpoints web-service

Describe Ingress Controller Rules

Check TLS certificates, routing rules, paths, and backend service mappings.

kubectl describe ingress [ingress_name]

ConfigMaps & Secrets

Create, inspect, and decode environment configs and encrypted credentials.

5 commands

List ConfigMaps & Secrets

Display configuration items and secret objects stored in the target namespace.

kubectl get configmaps,secrets

Create Secret from Literal Value

Securely create a Kubernetes Secret containing key-value pairs.

kubectl create secret generic app-secrets --from-literal=DATABASE_URL=postgres://user:pass@db:5432/main

Create ConfigMap from File

Inject an entire application configuration file into a cluster ConfigMap.

kubectl create configmap app-config --from-file=[file_path]

Decode Secret Value to Plaintext

Fetch and decode an individual base64-encoded secret key directly in terminal.

kubectl get secret app-secrets -o jsonpath="{.data.DATABASE_URL}" | base64 --decode

View Secret YAML Definition

Export the complete Kubernetes Secret object in YAML format.

kubectl get secret app-secrets -o yaml

Cluster & Nodes

Monitor worker nodes, view cluster health, cordon, and perform maintenance drains.

7 commands

View Cluster API Status

Display control plane master URLs and core cluster services.

kubectl cluster-info

List All Nodes with Operating System & IP

View all master and worker nodes with Kubernetes version, OS image, and IP addresses.

kubectl get nodes -o wide

View Node CPU & RAM Consumption

Inspect cluster-wide worker node CPU percentage and memory utilization.

kubectl top nodes

Describe Node Capacity, Conditions & Taints

Check allocatable resources, disk pressure, memory pressure, and node taints.

kubectl describe node worker-node-1

Cordon Node (Prevent New Pods)

Mark node as unschedulable so Kubernetes avoids scheduling new workloads on it.

kubectl cordon worker-node-1

Uncordon Node (Allow Workloads)

Mark a previously cordoned node schedulable again after maintenance.

kubectl uncordon worker-node-1

Drain Node for Safe Maintenance

Evict all running pods from node onto other healthy worker machines in cluster.

kubectl drain worker-node-1 --ignore-daemonsets --delete-emptydir-data --force

Contexts & Namespaces

Switch between multiple Kubernetes clusters, accounts, and project namespaces.

6 commands

Show Current Active Context

Display the name of the currently selected cluster and user identity context.

kubectl config current-context

List All Available Clusters & Contexts

Display all kubeconfig entries with asterisks denoting the active context.

kubectl config get-contexts

Switch to a Different Cluster Context

Instantly redirect your kubectl client to a different staging or production cluster.

kubectl config use-context prod-cluster

Permanently Set Default Namespace

Eliminate the need to supply "-n <namespace>" on every subsequent command.

kubectl config set-context --current --namespace=default

Create New Namespace

Create an isolated logical partition for applications and resources.

kubectl create namespace default

Delete Namespace & All Contained Resources

Recursively delete a namespace along with all pods, services, and secrets inside it.

kubectl delete namespace default

Dry-Run & Manifests

Generate starter YAML specs and test changes safely without applying them.

5 commands

Generate Deployment YAML (Dry-Run)

Print a clean, valid Kubernetes Deployment manifest directly to terminal or file.

kubectl create deployment web-service --image=nginx:alpine --dry-run=client -o yaml

Generate Service YAML (Dry-Run)

Generate a clean Service definition without actually applying it to the cluster.

kubectl expose deployment web-service --port=80 --type=ClusterIP --dry-run=client -o yaml

Preview YAML Diff Against Live Cluster

Compare local YAML file modifications against live cluster objects before applying.

kubectl diff -f ./deployment.yaml

Apply Manifest from File or Directory

Declaratively apply or update resources defined in a YAML manifest.

kubectl apply -f ./deployment.yaml

Delete Resources Defined in Manifest

Remove all Kubernetes objects described in the specified YAML file.

kubectl delete -f ./deployment.yaml

Interactive Command Builder

Quickly formulate accurate kubectl commands for Pods, Deployments, Services, ConfigMaps, Secrets, Nodes, and Namespaces.

Troubleshooting Playbooks

Battle-tested emergency one-liners for stuck terminating pods, CrashLoopBackOff triage, zero-downtime restarts, and node drains.

100% Client-Side & Secure

Runs completely in your browser. No server communication, no cluster credentials needed, and zero analytics on your private resource names.

Frequently Asked Questions

Are my Kubernetes cluster credentials or resource names shared with any server?
No. This tool operates 100% locally in your browser. No kubeconfigs, credentials, namespace names, or cluster parameters are ever transmitted or saved to any external server.
How do I force delete a pod stuck in "Terminating" status?
Use "kubectl delete pod <pod-name> -n <namespace> --grace-period=0 --force". If the pod remains stuck due to lingering finalizers, patch them out using "kubectl patch pod <pod-name> -n <namespace> -p '{\"metadata\":{\"finalizers\":null}}'".
How can I restart a deployment without taking down my application?
Run "kubectl rollout restart deployment/<deployment-name> -n <namespace>". Kubernetes performs a rolling update, spinning up healthy new pods before terminating existing pods to ensure zero downtime.
What is the fastest way to avoid typing "-n <namespace>" on every command?
Set your context default namespace permanently using "kubectl config set-context --current --namespace=<namespace>". All subsequent kubectl commands will default to that namespace automatically.
Recommended For You

More Dev Tools Utilities

View all Dev Tools tools