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