Post

Create Pod on the fly

Kubernetes: Create Pod on the fly — configuration and practical examples.

These commands create temporary, interactive pods directly from the command line without writing YAML manifests. The first variant uses a DNS utilities image, which is useful for debugging DNS resolution inside the cluster. The second uses a minimal BusyBox image for general-purpose troubleshooting.

1
2
kubectl run -i --tty busybox --image=gcr.io/kubernetes-e2e-test-images/dnsutils:1.3 --restart=Never -- sh
kubectl run -i --tty busybox --image=busybox --restart=Never -- sh
This post is licensed under CC BY 4.0 by the author.