Hi guys ! I have just done the Lightning Lab-1 and I have a wrong answer without . . .

Jonathan:
Hi guys ! I have just done the Lightning Lab-1 and I have a wrong answer without understanding why !
The question is this one:
Create a new deployment called nginx-deploy, with image nginx:1.16 and 1 replica. Next upgrade the deployment to version 1.17 using rolling update. Make sure that the version upgrade is recorded in the resource annotation.

I failed on this: Task: Record the changes for the image upgrade

I don’t see why since I check the annotations of the deployment and we see there was some change in it.
How can I validate this step ?

Vasu P:
Please use --record option while setting the new image.

Jonathan:
Haa perfect thank you ! it wasn’t clear for me I didn’t know this option

Jonathan:
So when you do kubectl apply -f with a new image version it doesn’t do that automatically ?

Jonathan:
Ok I read documentation about it thx

Nico Oosterwijk:
use kubectl set image command for this question with the --record parameter.