Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 398 Bytes

08 - rolling-updates-rollbacks.md

File metadata and controls

17 lines (12 loc) · 398 Bytes
Rolling Updates & Rollbacks
  • Rolling Update is the default strategy in k8s.

    • IF you describe a deployment you'll see:
      • StrategyType: RollingUpdate
  • Rollout Command:

    kubectl set image deployment/myapp nginx=nginx:1.10
    
    kubectl rollout status deployment/myapp
    
    kubectl rollout history deployment/myapp  
    
  • Rollback: kubectl rollout undo deployment/myapp