openshift-examples
openshift-examples copied to clipboard
kubectl apply vs kubectl update
kubectl apply will look for any pending updates on object and carefully apply changes at the end while kubectl update will overwrite without caring about other processes working on same object. useful in scenarios where hpa and you are working on same object kubectl apply is preferred over edit/update