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