@Sagar record will capture the change and command which has been used to change . . .

Subrata Biswas:
@Sagar record will capture the change and command which has been used to change the deployment in the annotation of deployment and will assign a revision number so that it can be rolled back or move to a certain revision . It will also show as revision when you will query the rollout history using "kubectl rollout history deploy “‘eploymentnamet’” In the below screenshot you will see revision no 3 in the deployment rollout history has recorded the action/command to make the change and below it shows that it actually is added as a annotation which you can see by running “kubectl get deployment ‘deployentnae’ -o yaml or -o=jsonpath=‘{.metadata.annotation}’”

Sagar:
@Subrata Biswas thanks I was trying edit pvc with record but didn’t work . Kubectl edit pvc pvcname —record=true when I saved it … it did not work

Subrata Biswas:
you can if you use declarative way k apply -f “pvc.yaml” --record and below is the screenshot for annotation in pvc

Sagar:
Thank You . Will try this way