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.
$ kubectl create deployment NAME --image=image -- [COMMAND] [args...]
$ kubectl create deployment my-deployment --image=nginx
$ 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
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.