fix prometheus cluster ip and support pod labels (#4915)

* fix prometheus cluster ip and support pod labels

* bump chart version
This commit is contained in:
Shane Starcher
2018-04-18 12:35:59 -07:00
committed by k8s-ci-robot
parent 1075756aff
commit 1b11ef35d6
3 changed files with 9 additions and 3 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
name: prometheus
version: 6.2.0
version: 6.2.1
appVersion: 2.2.1
description: Prometheus is a monitoring system and time series database.
home: https://prometheus.io/
@@ -21,6 +21,9 @@ spec:
app: {{ template "prometheus.name" . }}
component: "{{ .Values.kubeStateMetrics.name }}"
release: {{ .Release.Name }}
{{- if .Values.kubeStateMetrics.pod.labels }}
{{ toYaml .Values.kubeStateMetrics.pod.labels | indent 8 }}
{{- end }}
spec:
serviceAccountName: {{ template "prometheus.serviceAccountName.kubeStateMetrics" . }}
containers:
+5 -2
View File
@@ -278,6 +278,9 @@ kubeStateMetrics:
##
podAnnotations: {}
pod:
labels: {}
replicaCount: 1
## kube-state-metrics resource requests and limits
@@ -296,7 +299,7 @@ kubeStateMetrics:
prometheus.io/scrape: "true"
labels: {}
clusterIP: None
clusterIP: ""
## List of IP addresses at which the kube-state-metrics service is available
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips
@@ -386,7 +389,7 @@ nodeExporter:
prometheus.io/scrape: "true"
labels: {}
clusterIP: None
clusterIP: ""
## List of IP addresses at which the node-exporter service is available
## Ref: https://kubernetes.io/docs/user-guide/services/#external-ips