From 0be9b28f608218a5e7b29600f3e4ff6d165b560a Mon Sep 17 00:00:00 2001 From: Scott Hussey Date: Thu, 7 Mar 2019 13:44:15 -0600 Subject: [PATCH] (postgres) Fix deployment for prometheus exporter - The deployment resource for the prometheus exporter was missing the required (by apps/v1) field spec.selector. Add it. Change-Id: I8afb8541ea1660ee5ca610d7d2b4cfd149d317dc --- .../templates/monitoring/prometheus/exporter-deployment.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/postgresql/templates/monitoring/prometheus/exporter-deployment.yaml b/postgresql/templates/monitoring/prometheus/exporter-deployment.yaml index 711032275..506edf7a7 100644 --- a/postgresql/templates/monitoring/prometheus/exporter-deployment.yaml +++ b/postgresql/templates/monitoring/prometheus/exporter-deployment.yaml @@ -26,6 +26,9 @@ metadata: spec: replicas: {{ .Values.pod.replicas.prometheus_postgresql_exporter }} {{ tuple $envAll | include "helm-toolkit.snippets.kubernetes_upgrades_deployment" | indent 2 }} + selector: + matchLabels: +{{ tuple $envAll "prometheus_postgresql_exporter" "exporter" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 6 }} template: metadata: labels: