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: ""