From d04859b01c2128389b9a81007e231a0b2db091d7 Mon Sep 17 00:00:00 2001 From: Dominik Grygiel Date: Fri, 18 Oct 2024 20:55:11 +0200 Subject: [PATCH] Support specifying rack and dataCenter for filers in helm chart (#6144) --- k8s/charts/seaweedfs/templates/filer-statefulset.yaml | 6 ++++++ k8s/charts/seaweedfs/values.yaml | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml index fce27bb9a..0dfa0e84e 100644 --- a/k8s/charts/seaweedfs/templates/filer-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/filer-statefulset.yaml @@ -190,6 +190,12 @@ spec: {{- if .Values.filer.filerGroup}} -filerGroup={{ .Values.filer.filerGroup}} \ {{- end }} + {{- if .Values.filer.rack }} + -rack={{ .Values.filer.rack }} \ + {{- end }} + {{- if .Values.filer.dataCenter }} + -dataCenter={{ .Values.filer.dataCenter }} \ + {{- end }} {{- if .Values.filer.s3.enabled }} -s3 \ -s3.port={{ .Values.filer.s3.port }} \ diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml index 2470ac111..36ed45bc1 100644 --- a/k8s/charts/seaweedfs/values.yaml +++ b/k8s/charts/seaweedfs/values.yaml @@ -521,6 +521,10 @@ filer: metricsPort: 9327 loggingOverrideLevel: null filerGroup: "" + # prefer to read and write to volumes in this data center (not set by default) + dataCenter: null + # prefer to write to volumes in this rack (not set by default) + rack: null # replication type is XYZ: # X number of replica in other data centers # Y number of replica in other racks in the same data center