[bitnami/kube-state-metrics]: Do not scrape service twice (#2767)

* [bitnami/kube-state-metrics]: Do not scrape service twice

If we are using the ServiceMonitor resource to scrape the
kube-state-metrics service, we shouldn't use the prometheus annotation
as this may result scraping the service twice

* [bitnami/kube-state-metrics] Update components versions

Signed-off-by: Bitnami Containers <containers@bitnami.com>

Co-authored-by: Bitnami Containers <containers@bitnami.com>
This commit is contained in:
Markos Chandras
2020-06-09 15:39:39 +01:00
committed by GitHub
parent 6aae2c10a9
commit ecf992cb8e
4 changed files with 5 additions and 3 deletions

View File

@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 1.9.7
description: kube-state-metrics is a simple service that listens to the Kubernetes API server and generates metrics about the state of the objects.
name: kube-state-metrics
version: 0.3.0
version: 0.3.1
keywords:
- prometheus
- kube-state-metrics

View File

@@ -3,7 +3,9 @@ kind: Service
metadata:
name: {{ template "kube-state-metrics.fullname" . }}
annotations:
{{- if not .Values.serviceMonitor.enabled }}
prometheus.io/scrape: "true"
{{- end }}
{{- with .Values.service.annotations }}
{{- include "kube-state-metrics.tplValue" (dict "value" .Values.service.annotations "context" $) | nindent 4 }}
{{- end }}

View File

@@ -51,7 +51,7 @@ serviceAccount:
image:
registry: docker.io
repository: bitnami/kube-state-metrics
tag: 1.9.7-debian-10-r5
tag: 1.9.7-debian-10-r6
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'

View File

@@ -51,7 +51,7 @@ serviceAccount:
image:
registry: docker.io
repository: bitnami/kube-state-metrics
tag: 1.9.7-debian-10-r5
tag: 1.9.7-debian-10-r6
## Specify a imagePullPolicy
## Defaults to 'Always' if image tag is 'latest', else set to 'IfNotPresent'