Skip to content

Commit

Permalink
chore: move prometheus annotation to pod
Browse files Browse the repository at this point in the history
  • Loading branch information
Panaetius committed Jan 9, 2025
1 parent 039e6bc commit c49d4d8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
3 changes: 3 additions & 0 deletions helm-chart/renku/templates/data-service/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ spec:
annotations:
# NOTE: Without this the pod will not restart when the secret values change.
checksum/config: {{ include (print $.Template.BasePath "/notebooks/env-secret.yaml") . | sha256sum }}
prometheus.io/scrape: 'true'
prometheus.io/path: '/metrics'
prometheus.io/port: '8000'
{{- with .Values.dataService.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
4 changes: 0 additions & 4 deletions helm-chart/renku/templates/data-service/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ metadata:
chart: {{ template "renku.chart" . }}
release: {{ .Release.Name }}
heritage: {{ .Release.Service }}
annotations:
prometheus.io/scrape: 'true'
prometheus.io/path: '/metrics'
prometheus.io/port: '8000'
spec:
type: {{ .Values.dataService.service.type }}
ports:
Expand Down

0 comments on commit c49d4d8

Please sign in to comment.