deployment
Create a deployment with the specified name.
You describe a desired state in a Deployment, and the Deployment Controller changes the actual state to the desired state at a controlled rate. You can define Deployments to create new ReplicaSets, or to remove existing Deployments and adopt all their resources with new Deployments.
Command
$ kubectl create deployment NAME --image=image -- [COMMAND] [args...] Example
Command
$ kubectl create deployment my-deployment --image=nginx Output
$ kubectl get deployments NAME READY UP-TO-DATE AVAILABLE AGE my-deployment 1/1 1 1 35s $ kubectl get pods NAME READY STATUS RESTARTS AGE my-deployment-7d6dd5c955-pr4jt 1/1 Running 0 15s Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified September 23, 2020: docs update (b46eb86)