Score
0
Combo
x0
Wave 1/4
Type the command shown above a zombie and press Enter
$
CLUSTER COMPROMISED
The zombies breached the API Server. Your cluster has fallen.
CLUSTER SECURED
All zombie pods eliminated. The API Server stands strong.
PAUSED
Press ESC to resume
K8s Command Codex

Beginner Commands

kubectl delete pod <name>
Deletes a specific pod by name from the default namespace. The pod is terminated and removed from the cluster.

Intermediate Commands

kubectl delete pod <name> -n <namespace>
The -n flag specifies the target namespace. Pods are isolated by namespace, so you must specify it to reach pods outside "default".

Expert Commands

kubectl delete pods -l <key>=<value> --all
The -l flag uses a label selector to target multiple pods at once. --all ensures all matched resources are deleted across the namespace.
kubectl delete pods -l <key>=<value> -n <ns> --all
Combines label selectors with namespace targeting for precise bulk deletion in a specific namespace.
kubectl delete pod <name> --grace-period=0 --force
Force-deletes a pod immediately, bypassing the graceful termination period. Use when a pod is stuck in Terminating state.

Veteran Commands (Boss Fights)

kubectl scale deployment <name> --replicas=0 -n <ns>
Scales a deployment down to zero replicas, effectively stopping all its pods. First step in fixing a broken deployment.
kubectl set image deployment/<name> <container>=<image> -n <ns>
Updates the container image for a deployment. Used to fix a crashing pod by deploying a corrected image version.
kubectl scale deployment <name> --replicas=3 -n <ns>
Scales the deployment back up after the fix is applied, bringing healthy pods online.