Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

Helm: allow specifying extraArgs for s3 (#7294)

Andrei Kvapild0a338684c97
diff --git a/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml b/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml
index d710fecbc7..0c6d52c3eb 100644
--- a/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml
+++ b/k8s/charts/seaweedfs/templates/s3/s3-deployment.yaml
@@ -152,7 +152,10 @@ spec:
{{- if .Values.s3.auditLogConfig }}
-auditLogConfig=/etc/sw/s3_auditLogConfig.json \
{{- end }}
- -filer={{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:{{ .Values.filer.port }}
+ -filer={{ template "seaweedfs.name" . }}-filer-client.{{ .Release.Namespace }}:{{ .Values.filer.port }} \
+ {{- range .Values.s3.extraArgs }}
+ {{ . }} \
+ {{- end }}
volumeMounts:
{{- if or (eq .Values.s3.logs.type "hostPath") (eq .Values.s3.logs.type "emptyDir") }}
- name: logs
diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml
index 2518088cc6..72c5153ba1 100644
--- a/k8s/charts/seaweedfs/values.yaml
+++ b/k8s/charts/seaweedfs/values.yaml
@@ -869,7 +869,7 @@ filer:
# anonymousRead: false
s3:
- enabled: false
+ enabled: true
imageOverride: null
restartPolicy: null
replicas: 1
@@ -972,6 +972,11 @@ s3:
extraEnvironmentVars:
+ # Custom command line arguments to add to the s3 command
+ # Example to fix connection idle seconds:
+ extraArgs: ["-idleTimeout=30"]
+ #extraArgs: []
+
# used to configure livenessProbe on s3 containers
#
livenessProbe: