<p>Have a Prometheus operator on GKE and some ConfigMap with Prometheus rules, created by me. Today I figured out, that I can't change/delete that ConfigMap anymore. Each time it gets recreated in the previous state. Back in days, it wasn't immutable.</p>

<p>What can be the cause of that? </p>

<ul>
<li>K8S master: 1.13.7-gke.24</li>
<li>K8S node: 1.13.6-gke.13   </li>
<li>Prometheus: v2.4.3</li>
<li>Prometheus-operator: v0.24.0</li>
<li>Configmap-reload: v0.0.1</li>
<li>Prometheus-config-reloader: v0.24.0</li>
</ul>

d.ansimov
<p>Prometheus Operator acts on <a href="https://github.com/coreos/prometheus-operator#customresourcedefinitions" rel="nofollow noreferrer">CRDs</a>. These objects are continually watched, and any drift configuration will trigger a config-reload.</p>

<p>The operator is intended to fully control the ConfigMap; if you directly edit it, the config-reloader will eventually revert your changes to match the CRD configs.</p>

<p>The correct way to edit your rules is by changing the <a href="https://github.com/coreos/prometheus-operator/blob/29199d546e0bcb98b82f90b266eb437f1b1934c2/Documentation/design.md#prometheusrule" rel="nofollow noreferrer"><code>PrometheusRule</code></a> object. Your changes will be caught by the operator, which will update the ConfigMap and trigger a config-reload.</p>
