newbie - changed yaml - what to do to update k8s cluster with same

3/4/2019

Let's 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?

I created efs-provisioner without rbac and I believe pvc is in pending status because of it. So trying to update the yamls to accommodate the change.

-- Pat
kubernetes

1 Answer

3/4/2019

Yes, run again.

Kubernetes will take care of the rests.

-- BMW
Source: StackOverflow