kubectl run web --image=nginx:1.25

Category: Kubernetes & Containers

kubectl run web --image=nginx:1.25

Run a single pod from an image

Starts one pod (the smallest deployable unit in Kubernetes, one or more containers) named web from the nginx:1.25 image. Unlike create deployment it makes a bare pod with no replica management. For long-lived workloads prefer kubectl create deployment web --image=nginx:1.25.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.