Skip to content

Commit

Permalink
Move prometheus annotations to pod template (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
Chen Zhiling authored and feast-ci-bot committed Nov 28, 2019
1 parent 5402b6e commit 8c30640
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,6 @@ metadata:
chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
{{- if .Values.prometheus.enabled }}
{{ $config := index .Values "application.yaml" }}
prometheus.io/path: /metrics
prometheus.io/port: "{{ $config.server.port }}"
prometheus.io/scrape: "true"
{{- end }}
spec:
replicas: {{ .Values.replicaCount }}
selector:
Expand All @@ -25,6 +18,13 @@ spec:
release: {{ .Release.Name }}
template:
metadata:
annotations:
{{- if .Values.prometheus.enabled }}
{{ $config := index .Values "application.yaml" }}
prometheus.io/path: /metrics
prometheus.io/port: "{{ $config.server.port }}"
prometheus.io/scrape: "true"
{{- end }}
labels:
app: {{ template "feast-serving.name" . }}
component: serving
Expand Down

0 comments on commit 8c30640

Please sign in to comment.