Dangerous
kubectl delete namespace productioncross-platform · bash · Intermediate
Deletes a namespace and cascades to every deployment, service, secret, and persistent volume claim inside it. The verb is plain English and there are no shell metacharacters, yet it removes an entire production environment.
Signals to notice
- Cascading delete of every resource in the namespace
- Targets production
- No dry-run flag to preview the blast radius
Think you can spot these under time pressure?
Start TrainingMore Kubernetes
kubectl get pods -n defaultIntermediatekubectl describe pod web-0Advancedkubectl get secret db-creds -o jsonpath='{.data.password}' | base64 -dExpertkubectl create clusterrolebinding sa-admin --clusterrole=cluster-admin --serviceaccount=default:defaultExpertkubectl auth can-i --list --as=system:serviceaccount:default:defaultNightmarekubectl get pods -A -o jsonpath='{range .items[*]}{.metadata.namespace}{"\t"}{.spec.containers[*].image}{"\n"}{end}' | sort | uniq -c | sort -rnNightmare