Create a new deployment called `nginx-deploy`, with image `nginx:1.16` and `1` r . . .

Ravi Kambhamati:
Create a new deployment called nginx-deploy, with image nginx:1.16 and 1 replica. Record the version. Next upgrade the deployment to version 1.17 using rolling update. Make sure that the version upgrade is recorded in the resource annotation.

Frankube:
–record during updating deploy kubectl set image …

Mohamed Ayman:
Try to use --record when setting the image nginx:1.17

Mohamed Ayman:
Check the following steps:

kubectl create deployment nginx-deploy --image=nginx:1.16 --replicas=1
kubectl get deploy

Mohamed Ayman:
Then

kubectl set image deployment nginx-deploy nginx=nginx:1.17 --record
kubectl rollout history deployment nginx-deploy