From c4e0aec4ec475814f50dd38976f8d5b7f6f5b277 Mon Sep 17 00:00:00 2001 From: brandon Date: Fri, 9 Apr 2021 00:13:56 -0400 Subject: [PATCH] pod annotation --- helm-guestbook/templates/rollout.yaml | 8 ++++---- helm-guestbook/values.yaml | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/helm-guestbook/templates/rollout.yaml b/helm-guestbook/templates/rollout.yaml index 380d963..391ff0e 100644 --- a/helm-guestbook/templates/rollout.yaml +++ b/helm-guestbook/templates/rollout.yaml @@ -8,10 +8,6 @@ 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 @@ -24,6 +20,10 @@ spec: labels: app: {{ template "helm-guestbook.name" . }} release: {{ .Release.Name }} + {{- with .Values.deployment.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: containers: - name: {{ .Chart.Name }} diff --git a/helm-guestbook/values.yaml b/helm-guestbook/values.yaml index 2321694..a9170c6 100644 --- a/helm-guestbook/values.yaml +++ b/helm-guestbook/values.yaml @@ -12,7 +12,7 @@ image: deployment: annotations: prometheus.io/scrape: 'true' - prometheus.io/port: '80' + # prometheus.io/port: '80' service: type: NodePort