kubectl create deployment web --image=nginx:1.25

Category: Kubernetes & Containers

kubectl create deployment web --image=nginx:1.25

Create a deployment from an image

Creates a deployment (the resource that manages replicas of a pod) running the nginx:1.25 image. This is the quickest way to get a workload running for testing. Expose it with kubectl expose deployment web --type=NodePort --port=80.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.