aboutsummaryrefslogtreecommitdiff
path: root/script/helm/garage/templates/service.yaml
diff options
context:
space:
mode:
authorAlex <alex@adnab.me>2022-10-02 16:40:54 +0200
committerAlex <alex@adnab.me>2022-10-02 16:40:54 +0200
commite21b672c96da3c6d01a5ef964aa0ad7a38f8e74c (patch)
tree3c81b18ce35f168f7fe2b625340d484cf5037a9f /script/helm/garage/templates/service.yaml
parentb17d59cfabbe92c509f4888cae83f6053a8cab1e (diff)
parentdb0c8b3980c5cb056c9402332dd09a1bfb276997 (diff)
downloadgarage-e21b672c96da3c6d01a5ef964aa0ad7a38f8e74c.tar.gz
garage-e21b672c96da3c6d01a5ef964aa0ad7a38f8e74c.zip
Merge pull request 'Add helm chart' (#331) from chemicstry/garage:helm_chart into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/331 Reviewed-by: maximilien <me@mricher.fr>
Diffstat (limited to 'script/helm/garage/templates/service.yaml')
-rw-r--r--script/helm/garage/templates/service.yaml19
1 files changed, 19 insertions, 0 deletions
diff --git a/script/helm/garage/templates/service.yaml b/script/helm/garage/templates/service.yaml
new file mode 100644
index 00000000..2bfff99d
--- /dev/null
+++ b/script/helm/garage/templates/service.yaml
@@ -0,0 +1,19 @@
+apiVersion: v1
+kind: Service
+metadata:
+ name: {{ include "garage.fullname" . }}
+ labels:
+ {{- include "garage.labels" . | nindent 4 }}
+spec:
+ type: {{ .Values.service.type }}
+ ports:
+ - port: {{ .Values.service.s3.api.port }}
+ targetPort: 3900
+ protocol: TCP
+ name: s3-api
+ - port: {{ .Values.service.s3.web.port }}
+ targetPort: 3902
+ protocol: TCP
+ name: s3-web
+ selector:
+ {{- include "garage.selectorLabels" . | nindent 4 }}