kubectl run
SafeRun ad-hoc pods
kubectl run tmp --rm -it --image=busybox -- sh
Launches one-off pods — the classic disposable shell for in-cluster network and DNS checks.
Examples
kubectl run tmp --rm -it --image=busybox -- nslookup webTest in-cluster DNS
Syntax
kubectl run <name> --image=<img> [--rm -it] [-- cmd]
Before you run it
--rm cleans up; otherwise pods linger.
Related commands
- kubectl execExec into a pod
- kubectl debugEphemeral debug containers
The same reference, with no signal at all
Every command and flow from this site, held on your device and searchable with no connection. Free to install, no ads.
Get it free on the App Store