Welcome to the Linux Foundation Forum!

5 - Deployment Rollback missing --record on 'set' ?

Options

Is the set command missing --record ?

Should an update fail, due to an improper image version, for example, you can roll back the change to a working version with kubectl rollout undo:

$ kubectl set image deployment/ghost ghost=ghost:0.9 --all
$ kubectl rollout history deployment/ghost deployments "ghost":
REVISION     CHANGE-CAUSE
1            <none>
2            kubectl set image deployment/ghost ghost=ghost:0.9 --all

Comments

  • chrispokorni
    chrispokorni Posts: 2,165
    Options

    Good catch @bkclements!
    A --record flag should be included with the set image command.
    This should be corrected in a future course update release.

    Regards,
    -Chris

Categories

Upcoming Training