Hi, All i have a doubt that when we need to preserve the history of the updates . . .

Deepak Mourya:
Hi, All i have a doubt that when we need to preserve the history of the updates in the deployment command we use --record and check rollout history command. I have done following updates but my history was not preserved:

  1. update the image version
  2. change rolling update option to recreate
  3. again changed the image version to v2
    Let me know if i am missing something :disappointed:

Raamkanna Saranathan:
please note that the --record flag only saves the kubectl command, not the actual imperative action taken by the command. see description here:

record		false	Record current kubectl command in the resource annotation.....

so if you need to update image version, you should have done something like:

kubectl set image deployment/frontend nginx=nginx:1.9.1 --record

`

Deepak Mourya:
@Raamkanna Saranathan ok thanks, So if question says that we need to preserve the history what should be our steps ?