Newbie - yaml changed - what to do?



Lets say I have a deploymnet.yaml or PVC.yaml. I update the yaml file with some values. What should i do ? Apply again ? Sorry for newbie question I searched and went through documentation and came across rolling updates and record which I believe is further down the learning curve for me.

kubectl apply -f pvc.yaml # first run
Changes made to file
kubectl apply -f pvc.yaml # run again to update?


You are correct, you would run the apply again and if something has changed it will roll through updating the deployment again.

EDIT: I would suggest running through some tutorials to get the hang of this stuff. Katacoda has several that you can do without having to actually install anything.


@mrbobbytables Thank you so much.