From 3d548d153f0b1af9e603cb465cfdf31faf19aa24 Mon Sep 17 00:00:00 2001 From: brandon Date: Thu, 8 Apr 2021 23:37:14 -0400 Subject: [PATCH] prometheus scrape --- helm-guestbook/templates/rollout.yaml | 4 ++++ helm-guestbook/values.yaml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/helm-guestbook/templates/rollout.yaml b/helm-guestbook/templates/rollout.yaml index b854336..380d963 100644 --- a/helm-guestbook/templates/rollout.yaml +++ b/helm-guestbook/templates/rollout.yaml @@ -8,6 +8,10 @@ metadata: chart: {{ template "helm-guestbook.chart" . }} release: {{ .Release.Name }} heritage: {{ .Release.Service }} + {{- with .Values.deployment.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: replicas: {{ .Values.replicaCount }} revisionHistoryLimit: 3 diff --git a/helm-guestbook/values.yaml b/helm-guestbook/values.yaml index b863c87..9211782 100644 --- a/helm-guestbook/values.yaml +++ b/helm-guestbook/values.yaml @@ -9,6 +9,11 @@ image: tag: 0.1 pullPolicy: IfNotPresent +deployment: + annotations: + prometheus.io/scrape: 'true' + + service: type: NodePort port: 80