diff --git a/helm/templates/service.yaml b/helm/templates/service.yaml index 353b5cf6..587a10e2 100644 --- a/helm/templates/service.yaml +++ b/helm/templates/service.yaml @@ -4,6 +4,10 @@ metadata: name: {{ include "sql-exporter.fullname" . }} labels: {{- include "sql-exporter.labels" . | nindent 4 }} + {{- with .Values.service.annotations }} + annotations: + {{- toYaml . | nindent 4 }} + {{- end }} spec: type: {{ .Values.service.type }} ports: diff --git a/helm/values.yaml b/helm/values.yaml index b43b84bf..39157e7d 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -11,6 +11,10 @@ fullnameOverride: "" service: type: ClusterIP port: 80 + annotations: {} + # example of prometheus usage + # prometheus.io/scrape: "true" + # prometheus.io/path: "/metrics" resources: {} # limits: