mirror of
https://github.com/bitnami/charts.git
synced 2026-03-16 14:57:08 +08:00
[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:
@@ -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
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
@@ -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'
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user