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
当前内容版权归 kubernetes官网 或其关联方所有,如需对内容或内容相关联开源项目进行关注与资助,请访问 kubernetes官网 .