diff --git a/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet b/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet index eb388662bd4794015d826c973413b5bbe469eedd..78541d2c3d494bb19ff129078281c40d09962aba 100644 --- a/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet +++ b/jsonnet/kube-prometheus/components/prometheus-adapter.libsonnet @@ -300,7 +300,12 @@ function(params) { }, }, template: { - metadata: { labels: pa._config.commonLabels }, + metadata: { + annotations: { + 'checksum.config/md5': std.md5(std.manifestYamlDoc(pa._config.config)), + }, + labels: pa._config.commonLabels, + }, spec: { containers: [c], serviceAccountName: $.serviceAccount.metadata.name, diff --git a/manifests/prometheusAdapter-deployment.yaml b/manifests/prometheusAdapter-deployment.yaml index 5ea3fb392c4ee73f7ae988ebaa53f8a1d0b40ea9..c2d4cfc44aed75705c996fc348597410810c6deb 100644 --- a/manifests/prometheusAdapter-deployment.yaml +++ b/manifests/prometheusAdapter-deployment.yaml @@ -21,6 +21,8 @@ spec: maxUnavailable: 1 template: metadata: + annotations: + checksum.config/md5: 3b1ebf7df0232d1675896f67b66373db labels: app.kubernetes.io/component: metrics-adapter app.kubernetes.io/name: prometheus-adapter