JAEN

Kubernetes

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

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store