update prometheus charts from prometheus-operator to kube-prometheus-stack
March 18, 2021.
I migrated from prometheus-operator to kube-prometheus-stack and faced some difficulties.
Below is a list of errors which I encountered and the steps I took to work-around this.
Error 1: unknown field "metricRelabelings"
.
Solution: Comment out all appearances.
Error 2: unknown field "relabelings"
.
Solution: Comment out all appearances.
Error 3: unknown field "selector" in com.coreos.monitoring.v1.Alertmanager.spec.storage.volumeClaimTemplate
.
Solution: Comment out all this specific field under the volumeClaimTemplate
.
Error 4: unknown field "shards" in com.coreos.monitoring.v1.Prometheus.spec
.
Solution: Comment out the specific location, or follow suggestions from here.
Error 5: prometheus-kube-stack unknown fields probenamespaceselector and probeSelector
.
Solution: As mentioned in here, Delete all CRDs:
kubectl delete crd prometheuses.monitoring.coreos.comkubectl delete crd prometheusrules.monitoring.coreos.comkubectl delete crd servicemonitors.monitoring.coreos.comkubectl delete crd podmonitors.monitoring.coreos.comkubectl delete crd alertmanagers.monitoring.coreos.comkubectl delete crd thanosrulers.monitoring.coreos.com
And ran helm install
again.
Link to the chart issues page in Github.