Skip to content

2023100413063636 K8s Deployment

Deployment provides declarative updates to Pods and ReplicaSets. Strategies: - RollingUpdate - Creates new ReplicaSet B and can be rolled back to a prior Revision, if some problems. - Recreate Useful commands

kubectl rollout history deploy 
Get revision information
kubectl rollout history deploy  <name> --revision=1

Rollback to the revision

kubectl rollout undo deployment <name> --too-revision=1

References

  1. LinuxFoundationX LFS158x.1. Chapter 8. Kubernetes Building Blocks