<p>Recently <a href="https://github.com/helm/charts/tree/b9278fa98cef543f5473eb55160eaf45833bc74e/stable/prometheus-operator" rel="nofollow noreferrer">prometheus-operator</a> chart is deprecated and the chart has been renamed <a href="https://github.com/prometheus-community/helm-charts/tree/main/charts/kube-prometheus-stack#configuration" rel="nofollow noreferrer">kube-prometheus-stack</a> to more clearly reflect that it installs the kube-prometheus project stack, within which Prometheus Operator is only one component.</p>
<p>I checked both old and new chart and also I read all related documentation, but I couldn't find changes in the files(especially in <code>values.yaml</code>), could someone explain me to migrate from prometheus-operator to kube-prometheus-stack what I should do exactly?</p>

<p><strong>March 18, 2021</strong>.</p>
<p>I migrated from <em>prometheus-operator</em> to <em>kube-prometheus-stack</em> and faced some difficulties.</p>
<p>Below is a list of errors which I encountered and the steps I took to work-around this.</p>
<hr />
<p><strong>Error 1</strong>: <code>unknown field &quot;metricRelabelings&quot;</code>.</p>
<p><strong>Solution</strong>: Comment out all appearances.</p>
<hr />
<p><strong>Error 2</strong>: <code>unknown field &quot;relabelings&quot;</code>.</p>
<p><strong>Solution</strong>: Comment out all appearances.</p>
<hr />
<p><strong>Error 3</strong>: <code>unknown field &quot;selector&quot; in com.coreos.monitoring.v1.Alertmanager.spec.storage.volumeClaimTemplate</code>.</p>
<p><strong>Solution</strong>: Comment out all this specific field under the <code>volumeClaimTemplate</code>.</p>
<hr />
<p><strong>Error 4</strong>: <code>unknown field &quot;shards&quot; in com.coreos.monitoring.v1.Prometheus.spec</code>.</p>
<p><strong>Solution</strong>: Comment out the specific location, or follow suggestions from <a href="https://github.com/prometheus-community/helm-charts/issues/579" rel="nofollow noreferrer">here</a>.</p>
<hr />
<p><strong>Error 5</strong>: <code>prometheus-kube-stack unknown fields probenamespaceselector and probeSelector</code>.</p>
<p><strong>Solution</strong>: As mentioned in <a href="https://github.com/prometheus-community/helm-charts/issues/250#issuecomment-740813317" rel="nofollow noreferrer">here</a>, Delete all CRDs:</p>
<pre><code>kubectl delete crd prometheuses.monitoring.coreos.com
kubectl delete crd prometheusrules.monitoring.coreos.com
kubectl delete crd servicemonitors.monitoring.coreos.com
kubectl delete crd podmonitors.monitoring.coreos.com
kubectl delete crd alertmanagers.monitoring.coreos.com
kubectl delete crd thanosrulers.monitoring.coreos.com
</code></pre>
<p>And ran <code>helm install</code> again.</p>
<hr />
<p>Link to the chart <a href="https://github.com/prometheus-community/helm-charts/issues" rel="nofollow noreferrer">issues page</a> in Github.</p>
