Section: Imperative Resource Creation

Run ad hoc pod

bash
bash
kubectl run toolbox --image=busybox:1.36 -it --rm -- sh
Explanation

Create a one-off interactive pod.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Imperative Resource Creation
Create deployment
Create a deployment from an image.
OpenIn sheetbashsame section
Scale deployment
Change replicas on a scalable workload.
OpenIn sheetbashsame section
Expose deployment
Create a Service for a workload.
OpenIn sheetbashsame section
Create configmap from literals
Create a ConfigMap imperatively.
OpenIn sheetbashsame section
Create configmap from file
Build a ConfigMap from file content.
OpenIn sheetbashsame section
Create generic secret
Create an opaque Secret.
OpenIn sheetbashsame section