How to update resources after CustomResourceDefinitions changes

2/20/2019

I'm new to Kubernetes. Got confused with how CustomResourceDefinations changes got to apply:-) Ex: If I have a CustomResourceDefinations "Prometheus", it creates a Statefulsets which create one pod. After the CRD changed, I need to use the latest CRD to create my pod again. What is the correct way? Should I completely remove the Statefulsets and pod then recreate them or just simply do "kubectl delete pod" then the change will auto apply when the new pod gets created? Thanks much!

-- Whispererli
kubernetes
prometheus

1 Answer

2/20/2019

The operator, or more specifically the custom controller at the heart of the operator, takes care of this. It watches for changes in the Kubernetes API and updates things as needed to respond.

-- coderanger
Source: StackOverflow