diff --git a/stable/kuberhealthy/Chart.yaml b/stable/kuberhealthy/Chart.yaml index a759fa0474..38c886ea5c 100644 --- a/stable/kuberhealthy/Chart.yaml +++ b/stable/kuberhealthy/Chart.yaml @@ -3,7 +3,7 @@ appVersion: "v1.0.2" home: https://comcast.github.io/kuberhealthy/ description: The official Helm chart for Kuberhealthy. name: kuberhealthy -version: 1.2.2 +version: 1.2.3 maintainers: - name: integrii email: eric.greer@comcast.com @@ -19,6 +19,7 @@ keywords: - comcast - health - cluster +- prometheus sources: - https://github.com/Comcast/kuberhealthy - https://github.com/helm/charts/tree/master/stable/kuberhealthy diff --git a/stable/kuberhealthy/templates/deployment.yaml b/stable/kuberhealthy/templates/deployment.yaml index a60b57f4a2..7574205ca2 100644 --- a/stable/kuberhealthy/templates/deployment.yaml +++ b/stable/kuberhealthy/templates/deployment.yaml @@ -26,6 +26,13 @@ spec: {{ $key }}: {{ $value | quote }} {{- end }} {{- end }} + {{- if .Values.prometheus.enabled -}} + {{- if .Values.prometheus.enableScraping -}} + prometheus.io/scrape: "true" + prometheus.io/path: "/metrics" + prometheus.io/port: "8080" + {{- end }} + {{- end }} labels: app: {{ template "kuberhealthy.name" . }} chart: {{ .Chart.Name }} diff --git a/stable/kuberhealthy/templates/service.yaml b/stable/kuberhealthy/templates/service.yaml index a21ddd13e4..8a99eb5a2d 100644 --- a/stable/kuberhealthy/templates/service.yaml +++ b/stable/kuberhealthy/templates/service.yaml @@ -4,13 +4,6 @@ metadata: labels: app: {{ template "kuberhealthy.name" . }} release: {{ .Release.Name }} - {{ if .Values.prometheus.enabled -}} - {{ if .Values.prometheus.enableScraping -}} - annotations: - prometheus.io/scrape: "true" - prometheus.io/path: "/metrics" - {{ end -}} - {{ end -}} name: {{ template "kuberhealthy.name" . }} spec: type: {{ .Values.service.type }}