Skip to content

Commit 36814f6

Browse files
committed
feat(seaweedfs): limit single PUT request size to 5GB
Add nginx ingress annotation to limit single PUT request body size to 5GB for both system and tenant SeaweedFS S3 endpoints. This enforces the use of S3 multipart upload API for files larger than 5GB, which prevents issues commonly seen with large monolithic uploads and reduces support load. Changes: - Set proxy-body-size to "5g" in system seaweedfs values.yaml - Set proxy-body-size to "5g" in tenant seaweedfs template - Add explanatory comments for the limitation Signed-off-by: IvanHunters <[email protected]>
1 parent 91dc23e commit 36814f6

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

‎packages/extra/seaweedfs/templates/seaweedfs.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,10 @@ spec:
240240
className: {{ $ingress }}
241241
host: {{ .Values.host | default (printf "s3.%s" $host) }}
242242
annotations:
243-
nginx.ingress.kubernetes.io/proxy-body-size: "0"
243+
# Limit single PUT request to 5GB to enforce multipart uploads for large files.
244+
# This prevents issues with large file uploads and reduces support load.
245+
# For files >5GB, clients must use S3 multipart upload API.
246+
nginx.ingress.kubernetes.io/proxy-body-size: "5g"
244247
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
245248
{{- if eq $solver "http01" }}
246249
acme.cert-manager.io/http01-ingress-class: {{ $ingress }}

‎packages/system/seaweedfs/values.yaml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ seaweedfs:
102102
className: "tenant-root"
103103
host: "seaweedfs.demo.cozystack.io"
104104
annotations:
105-
nginx.ingress.kubernetes.io/proxy-body-size: "0"
105+
# Limit single PUT request to 5GB to enforce multipart uploads for large files.
106+
# This prevents issues with large file uploads and reduces support load.
107+
# For files >5GB, clients must use S3 multipart upload API.
108+
nginx.ingress.kubernetes.io/proxy-body-size: "5g"
106109
nginx.ingress.kubernetes.io/proxy-buffering: "off"
107110
nginx.ingress.kubernetes.io/proxy-request-buffering: "off"
108111
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"

0 commit comments

Comments
 (0)