Browse Source

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
pull/8688/head
hoppla20 4 days ago
committed by GitHub
parent
commit
d79e82ee60
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      k8s/charts/seaweedfs/templates/volume/volume-statefulset.yaml
  2. 6
      k8s/charts/seaweedfs/values.yaml

4
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 }}

6
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

Loading…
Cancel
Save