From d79e82ee60acc0d041cdfb4b404561a7335d2193 Mon Sep 17 00:00:00 2001 From: hoppla20 Date: Wed, 18 Mar 2026 20:30:18 +0100 Subject: [PATCH] fix(chart): missing resources on volume statefulset initContainer (#8678) * fix(chart): missing resources on volume statefulset initContainer * chore(chart): use own resources for idx-vol-move initContainer * chore(chart): improve comment for idxMoveResources value --- .../seaweedfs/templates/volume/volume-statefulset.yaml | 4 ++++ k8s/charts/seaweedfs/values.yaml | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml index 8bb904873..1ef97088c 100644 --- a/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml +++ b/k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml @@ -86,6 +86,10 @@ spec: - name: {{ $dir.name }} mountPath: /{{ $dir.name }} {{- end }} + {{- with $volume.idxVolMoveResources }} + resources: + {{- toYaml . | nindent 12 }} + {{- end }} {{- if $volume.containerSecurityContext.enabled }} securityContext: {{- omit $volume.containerSecurityContext "enabled" | toYaml | nindent 12 }} {{- end }} diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml index a7916cf30..364334c16 100644 --- a/k8s/charts/seaweedfs/values.yaml +++ b/k8s/charts/seaweedfs/values.yaml @@ -393,6 +393,12 @@ volume: idx: {} + # Resource requests, limits, etc. for the vol-move-idx initContainer. This + # should map directly to the value of the resources field for a PodSpec, + # formatted as a multi-line string. By default no direct resource request + # is made. + idxVolMoveResources: {} + logs: {} # limit background compaction or copying speed in mega bytes per second