1.1 Rollout

When you first create a deployment, it triggers a rollout. A new rollout creates a new deployment revision. When the application is upgraded meaning when the container version is updated to a new one a new rollout is triggered and a new deployment revision is created named revision 2.

1.1.1 Strategy

There are two types of deployment strategies: Recreate (kill all and recreate all) and rolling update (kill one and create one). Rolling update is the default.

1.1.2 Create/Update

See Deployment section (create and update).

1.1.3 Check Status

kubectl rollout status deployment/myapp-deployment
kubectl rollout history deployment/ myapp deployment

1.2 Rollback

kubectl rollout undo deployment/myapp-deployment

Tags:
Created by Bin Chen on 2020/09/04 04:05
    

Need help?

If you need help with XWiki you can contact:

京ICP备19054609号-1

京公网安备 11010502039855号