From 67102dd18562feaa8b915545afa39a236368c3f0 Mon Sep 17 00:00:00 2001 From: kaiyou Date: Wed, 23 Nov 2022 22:45:28 +0100 Subject: [PATCH] Add admin port --- script/helm/garage/templates/configmap.yaml | 3 +++ script/helm/garage/templates/service.yaml | 4 ++++ script/helm/garage/templates/workload.yaml | 2 ++ 3 files changed, 9 insertions(+) diff --git a/script/helm/garage/templates/configmap.yaml b/script/helm/garage/templates/configmap.yaml index 851754e7..345e0e86 100644 --- a/script/helm/garage/templates/configmap.yaml +++ b/script/helm/garage/templates/configmap.yaml @@ -30,3 +30,6 @@ data: bind_addr = "[::]:3902" root_domain = "{{ .Values.garage.s3.web.rootDomain }}" index = "{{ .Values.garage.s3.web.index }}" + + [admin] + api_bind_addr = "[::]:3903" diff --git a/script/helm/garage/templates/service.yaml b/script/helm/garage/templates/service.yaml index 2bfff99d..a38c0651 100644 --- a/script/helm/garage/templates/service.yaml +++ b/script/helm/garage/templates/service.yaml @@ -15,5 +15,9 @@ spec: targetPort: 3902 protocol: TCP name: s3-web + - port: 3904 + targetPort: 3903 + protocol: TCP + name: admin selector: {{- include "garage.selectorLabels" . | nindent 4 }} diff --git a/script/helm/garage/templates/workload.yaml b/script/helm/garage/templates/workload.yaml index 057a9858..b5e71dad 100644 --- a/script/helm/garage/templates/workload.yaml +++ b/script/helm/garage/templates/workload.yaml @@ -56,6 +56,8 @@ spec: name: s3-api - containerPort: 3902 name: web-api + - containerPort: 3903 + name: admin volumeMounts: - name: meta mountPath: /mnt/meta