<p>Error: INSTALLATION FAILED: rendered manifests contain a resource that already exists. Unable to continue with install: ClusterRole &quot;prometheus-kube-state-metrics&quot; in namespace &quot;&quot; exists and cannot be imported into the current release: invalid ownership metadata; annotation validation error: key &quot;meta.helm.sh/release-namespace&quot; must equal &quot;monitoring&quot;: current value is &quot;monitoring-kogito-poc&quot;</p>
<p>How to resolve this I have deleted the namespace and created new namespace and trying to install helm charts for grafana and prometheus.
But it couldn't allowed me to install.
I have deleted clusterrolebinding to for all below enter image description here</p>
<p>kubectl delete clusterrolebinding prometheus-kube-state-metrics
[enter image description here][1]</p>
<p>but it still showing and notable install prometheus
[1]: <a href="https://i.stack.imgur.com/QkNaS.png" rel="nofollow noreferrer">https://i.stack.imgur.com/QkNaS.png</a></p>

user20094361
<p>It was not enough just to delete the role binding. I had to also delete the role itself.</p>
<pre><code>kubectl delete clusterrole prometheus-kube-state-metrics
</code></pre>
<p>Furthermore I deleted all other prometheus-relevant role bindings and roles, too:</p>
<ul>
<li>prometheus-alertmanager</li>
<li>prometheus-pushgateway</li>
<li>prometheus-server</li>
<li>system:prometheus</li>
</ul>
<p>Finally I re-ran the installation and it worked.</p>
