0

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.

1 Answers1

0

Yes, run again.

Kubernetes will take care of the rests.

BMW
  • 42,880
  • 12
  • 99
  • 116
  • Thank you so much for quick response. is it ideal to use apply for CI/CD purposes? –  Mar 04 '19 at 23:26
  • 1
    yes, you can. If you need blue/green deployment, then you need do some extra jobs. – BMW Mar 04 '19 at 23:32