From e9f0d3ad2c861de51ce0209e8a9f0c4a04c5de62 Mon Sep 17 00:00:00 2001 From: Akshat Vikram Singh Date: Fri, 30 Oct 2026 13:45:36 +0530 Subject: [PATCH] helm: set resources on the worker-lance container (#12240) * helm: set resources on the worker-lance container Signed-off-by: AkshatIIITD * helm: Updated worker-deployment according to bot input Signed-off-by: AkshatIIITD * helm: drop trailing whitespace in values.yaml --------- Signed-off-by: AkshatIIITD Co-authored-by: chrislusf --- k8s/charts/seaweedfs/templates/worker/worker-deployment.yaml | 4 ++++ k8s/charts/seaweedfs/values.yaml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/k8s/charts/seaweedfs/templates/worker/worker-deployment.yaml b/k8s/charts/seaweedfs/templates/worker/worker-deployment.yaml index 7feff0c5c7..b0c4f4d93a 100644 --- a/k8s/charts/seaweedfs/templates/worker/worker-deployment.yaml +++ b/k8s/charts/seaweedfs/templates/worker/worker-deployment.yaml @@ -298,6 +298,10 @@ spec: failureThreshold: 3 timeoutSeconds: 10 {{- end }} + {{- with (default .Values.worker.resources .Values.worker.lanceResources) }} + resources: + {{- toYaml . | nindent 12 }} + {{- end }} {{- if .Values.worker.containerSecurityContext.enabled }} securityContext: {{- omit .Values.worker.containerSecurityContext "enabled" | toYaml | nindent 12 }} {{- end }} diff --git a/k8s/charts/seaweedfs/values.yaml b/k8s/charts/seaweedfs/values.yaml index 2475590e53..88bccc432f 100644 --- a/k8s/charts/seaweedfs/values.yaml +++ b/k8s/charts/seaweedfs/values.yaml @@ -1812,6 +1812,10 @@ worker: limits: cpu: "2" memory: "2Gi" + + # Resources for the worker-lance sidecar. Falls back to worker.resources if unset. + lanceResources: {} + tolerations: "" nodeSelector: "" priorityClassName: ""