When making "nodeAffinity" related changes on a deployment it is required to de . . .

Ravi Shanker:
When making “nodeAffinity” related changes on a deployment it is required to delete the previous deployment and create a new deployment as doing “kubectl apply -f updated-deployment.yaml” will always fail. Is this statement and my understanding on Node Affinity deployments correct ?

Balkrishan Nagpal:
No, using kubectl apply will create a new version of deployment and nodes of that new version will follow nodeAffinity and older pods will go away

Ravi Shanker:
Thank you. I got it right now. Was able to apply without errors.