From 30aea5600f0160637781e8e4396f37ec43f546c4 Mon Sep 17 00:00:00 2001 From: Bruno Clermont Date: Wed, 18 Mar 2020 17:16:38 +0800 Subject: [PATCH] Prevent prometheus to scrap both services Signed-off-by: Bruno Clermont --- production/helm/loki/Chart.yaml | 2 +- production/helm/loki/templates/service-headless.yaml | 1 + production/helm/loki/templates/servicemonitor.yaml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/production/helm/loki/Chart.yaml b/production/helm/loki/Chart.yaml index 0cca46682cae..df1ebe64e2a0 100644 --- a/production/helm/loki/Chart.yaml +++ b/production/helm/loki/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: "v1" name: loki -version: 0.25.1 +version: 0.25.2 appVersion: v1.3.0 kubeVersion: "^1.10.0-0" description: "Loki: like Prometheus, but for logs." diff --git a/production/helm/loki/templates/service-headless.yaml b/production/helm/loki/templates/service-headless.yaml index 0c0a0eee5b48..644f52762549 100644 --- a/production/helm/loki/templates/service-headless.yaml +++ b/production/helm/loki/templates/service-headless.yaml @@ -8,6 +8,7 @@ metadata: chart: {{ template "loki.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + variant: headless spec: clusterIP: None ports: diff --git a/production/helm/loki/templates/servicemonitor.yaml b/production/helm/loki/templates/servicemonitor.yaml index 443583271884..1f38cab142e3 100644 --- a/production/helm/loki/templates/servicemonitor.yaml +++ b/production/helm/loki/templates/servicemonitor.yaml @@ -16,6 +16,7 @@ spec: matchLabels: app: {{ template "loki.name" . }} release: {{ .Release.Name | quote }} + variant: headless namespaceSelector: matchNames: - {{ .Release.Namespace | quote }}