mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
[stable/concourse] Moves prometheus annotation to deployment (#9536)
Previously, Prometheus annotations were added to the web service, which is meant to represent the whole replica set of pods, leaving no pod-specific labels to the metrics gathered, defeating the purpose of some of them (that are meant to be container-specific). By moving them to `deployment`, we're able to collect them per-pod, instead of per-service. Signed-off-by: Ciro S. Costa <cscosta@pivotal.io>
This commit is contained in:
committed by
Kubernetes Prow Robot
parent
35c9af9569
commit
ff86c681bb
@@ -1,5 +1,5 @@
|
||||
name: concourse
|
||||
version: 3.4.0
|
||||
version: 3.4.1
|
||||
appVersion: 4.2.2
|
||||
description: Concourse is a simple and scalable CI system.
|
||||
icon: https://avatars1.githubusercontent.com/u/7809479
|
||||
|
||||
@@ -15,7 +15,13 @@ spec:
|
||||
app: {{ template "concourse.web.fullname" . }}
|
||||
release: "{{ .Release.Name }}"
|
||||
annotations:
|
||||
{{ toYaml .Values.web.annotations | indent 8 }}
|
||||
{{- if .Values.concourse.web.prometheus.enabled }}
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: {{ .Values.concourse.web.prometheus.bindPort | quote }}
|
||||
{{- end }}
|
||||
{{- range $key, $value := .Values.web.annotations }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
spec:
|
||||
{{- with .Values.web.nodeSelector }}
|
||||
nodeSelector:
|
||||
|
||||
@@ -8,13 +8,7 @@ metadata:
|
||||
release: "{{ .Release.Name }}"
|
||||
heritage: "{{ .Release.Service }}"
|
||||
annotations:
|
||||
{{- range $key, $value := .Values.web.service.annotations }}
|
||||
{{ $key }}: {{ $value | quote }}
|
||||
{{- end }}
|
||||
{{- if .Values.concourse.web.prometheus.enabled }}
|
||||
prometheus.io/scrape: "true"
|
||||
prometheus.io/port: {{ .Values.concourse.web.prometheus.bindPort | quote }}
|
||||
{{- end }}
|
||||
{{ toYaml .Values.web.service.annotations | indent 4 }}
|
||||
spec:
|
||||
type: {{ .Values.web.service.type }}
|
||||
{{ if .Values.web.service.loadBalancerSourceRanges }}
|
||||
|
||||
Reference in New Issue
Block a user