[prometheus-nats-exporter] support service annotations (#914)

* support annotations in nats-exporter service

Signed-off-by: brunopadz <bpadz@protonmail.com>

* fix helm templating

Signed-off-by: brunopadz <bpadz@protonmail.com>

* Update charts/prometheus-nats-exporter/templates/service.yaml

Co-authored-by: Mikhail Naletov <36846182+okgolove@users.noreply.github.com>
Signed-off-by: brunopadz <bpadz@protonmail.com>

* fix templating

Signed-off-by: brunopadz <bpadz@protonmail.com>

Co-authored-by: Mikhail Naletov <36846182+okgolove@users.noreply.github.com>
This commit is contained in:
Bruno Padilha
2021-04-29 16:58:03 +03:00
committed by GitHub
co-authored by Mikhail Naletov
parent 769fd3a283
commit 031d542cc6
3 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ apiVersion: v1
appVersion: 0.7.0
description: A Helm chart for prometheus-nats-exporter
name: prometheus-nats-exporter
version: 2.6.0
version: 2.7.0
home: https://github.com/nats-io/prometheus-nats-exporter
sources:
- https://github.com/nats-io/prometheus-nats-exporter
@@ -1,6 +1,8 @@
apiVersion: v1
kind: Service
metadata:
annotations:
{{ toYaml .Values.service.annotations | indent 4 }}
name: {{ include "prometheus-nats-exporter.fullname" . }}
labels:
app.kubernetes.io/name: {{ include "prometheus-nats-exporter.name" . }}
@@ -10,6 +10,7 @@ image:
pullPolicy: IfNotPresent
service:
annotations: {}
type: ClusterIP
port: 80
targetPort: 7777