Command

Kubernetes Create a Deployment Command

The Kubernetes command to create a deployment is kubectl create deployment nginx --image=nginx.

Quick Answer

Command
kubectl create deployment nginx --image=nginx
KubernetesCommand

Create a Deployment

Type this command
kubectl create deployment nginx --image=nginx

Starts a single instance of nginx as a deployment.

Learn More

How to create a deployment in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl create deployment nginx --image=nginx, replace any placeholders, and run it.

Kubernetes Create a Deployment Command

Run kubectl create deployment nginx --image=nginx.

Related Commands

Frequently asked questions

What is the Kubernetes command to create a deployment?

Run kubectl create deployment nginx --image=nginx.

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify