Browse Source

prometheus scrape

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

4
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

5
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

Loading…
Cancel
Save