Skip to content

Latest commit

 

History

History

deployments

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Deployments

It is a kubernetes object which the declarative updates for Pods and ReplicaSets

Create Deployment

kubectl create -f https://raw.githubusercontent.com/javahometech/kubernetes/master/deployments/deployments.yml --record=true

Check status of the current deployment

kubectl rollout status deployment nodeappdeployment

Updating deployment

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 Deployment revisions

Kubernetes maintains deployment state of all versions

inorder to see deployment revision history

kubectl rollout history deployment nodeappdeployment

Undo recent deployment

kubectl rollout undo deployment nodeappdeployment

rollback to specific deployment revision

kubectl rollout undo deployment nodeappdeployment --to-revision=1