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