aboutsummaryrefslogtreecommitdiff
path: root/script/helm/garage/templates/service.yaml
diff options
context:
space:
mode:
authormaximilien <me@mricher.fr>2023-01-27 10:51:04 +0000
committermaximilien <me@mricher.fr>2023-01-27 10:51:04 +0000
commitdf30f3df4b2b6cb67c4e37117fb30d6f61cfefc5 (patch)
tree2e9291b5f91abf355e92668fd3ed4bbbb5896698 /script/helm/garage/templates/service.yaml
parentf2c256cac4e599335d592dd580011cf15f278a51 (diff)
parent50bce43f25574d168f015f31fb7f8a69dafac072 (diff)
downloadgarage-df30f3df4b2b6cb67c4e37117fb30d6f61cfefc5.tar.gz
garage-df30f3df4b2b6cb67c4e37117fb30d6f61cfefc5.zip
Merge pull request 'helm chart improvements' (#425) from patrickjahns/garage:helm-improvements into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/425
Diffstat (limited to 'script/helm/garage/templates/service.yaml')
-rw-r--r--script/helm/garage/templates/service.yaml21
1 files changed, 21 insertions, 0 deletions
diff --git a/script/helm/garage/templates/service.yaml b/script/helm/garage/templates/service.yaml
index 2bfff99d..37218872 100644
--- a/script/helm/garage/templates/service.yaml
+++ b/script/helm/garage/templates/service.yaml
@@ -17,3 +17,24 @@ spec:
name: s3-web
selector:
{{- include "garage.selectorLabels" . | nindent 4 }}
+{{- if .Values.monitoring.metrics.enabled }}
+---
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "garage.fullname" . }}-metrics
+ labels:
+ {{- include "garage.labels" . | nindent 4 }}
+ annotations:
+ prometheus.io/scrape: "true"
+spec:
+ type: ClusterIP
+ clusterIP: None
+ ports:
+ - port: 3903
+ targetPort: 3903
+ protocol: TCP
+ name: metrics
+ selector:
+ {{- include "garage.selectorLabels" . | nindent 4 }}
+{{- end }} \ No newline at end of file