Hey all, I had a doubt about the explanation for kubectl apply command. I didn't . . .

Nitin:
Hey all, I had a doubt about the explanation for kubectl apply command. I didn’t understand the need of last applied config being stored as annotation. @Mumshad Mannambeth mentions it used to differentiate with changes on the yaml file with current config. But for that why do we need a third (last apply config)? Won’t the diff between yaml and live config be enough for that?

Артем Горячев:
You can change something in the pod after applying configuration. and you need to know “original” config that was applied. I think so.

Nitin:
oh ok. might be the reason

unnivkn:
Hi … Please go through this link. please search --record in this doc. https://kubernetes.io/docs/concepts/workloads/controllers/deployment/