Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

helm: set resources on the worker-lance container (#12240)

Akshat Vikram Singhe9f0d3ad2c86
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: ""