It is a kubernetes object which the declarative updates for Pods and ReplicaSets
kubectl create -f https://raw.githubusercontent.com/javahometech/kubernetes/master/deployments/deployments.yml --record=true
kubectl rollout status deployment nodeappdeployment
For example we want to change number of replicas, change replicas in yaml and run following command
kubectl apply -f https://raw.githubusercontent.com/javahometech/kubernetes/master/deployments/deployments.yml --record=true
Kubernetes maintains deployment state of all versions
inorder to see deployment revision history
kubectl rollout history deployment nodeappdeployment
kubectl rollout undo deployment nodeappdeployment
kubectl rollout undo deployment nodeappdeployment --to-revision=1