Browse Source

pod annotation

pull/82/head
brandon 4 years ago
parent
commit
c4e0aec4ec
  1. 8
      helm-guestbook/templates/rollout.yaml
  2. 2
      helm-guestbook/values.yaml

8
helm-guestbook/templates/rollout.yaml

@ -8,10 +8,6 @@ metadata:
chart: {{ template "helm-guestbook.chart" . }} chart: {{ template "helm-guestbook.chart" . }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
heritage: {{ .Release.Service }} heritage: {{ .Release.Service }}
{{- with .Values.deployment.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec: spec:
replicas: {{ .Values.replicaCount }} replicas: {{ .Values.replicaCount }}
revisionHistoryLimit: 3 revisionHistoryLimit: 3
@ -24,6 +20,10 @@ spec:
labels: labels:
app: {{ template "helm-guestbook.name" . }} app: {{ template "helm-guestbook.name" . }}
release: {{ .Release.Name }} release: {{ .Release.Name }}
{{- with .Values.deployment.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec: spec:
containers: containers:
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}

2
helm-guestbook/values.yaml

@ -12,7 +12,7 @@ image:
deployment: deployment:
annotations: annotations:
prometheus.io/scrape: 'true' prometheus.io/scrape: 'true'
prometheus.io/port: '80' # prometheus.io/port: '80'
service: service:
type: NodePort type: NodePort

Loading…
Cancel
Save