diff --git a/k8s/charts/seaweedfs/README.md b/k8s/charts/seaweedfs/README.md index 736d5dd59..7f27cb22e 100644 --- a/k8s/charts/seaweedfs/README.md +++ b/k8s/charts/seaweedfs/README.md @@ -213,12 +213,20 @@ worker: replicas: 2 # Scale based on workload capabilities: "vacuum,balance,erasure_coding" # Tasks this worker can handle maxConcurrent: 3 # Maximum concurrent tasks per worker + + # Working directory for task execution + # Default: "/tmp/seaweedfs-worker" + # Note: /tmp is ephemeral - use persistent storage (hostPath/existingClaim) for long-running tasks workingDir: "/tmp/seaweedfs-worker" # Optional: configure admin server address - # If not specified, auto-discovers from admin service in the same namespace. - # Replace with the namespace where the admin service is deployed. - adminServer: "seaweedfs-admin..svc:33646" + # If not specified, auto-discovers from admin service in the same namespace by looking for + # a service named "-admin" (e.g., "seaweedfs-admin"). + # Auto-discovery only works if the admin is in the same namespace and same Helm release. + # For cross-namespace or separate release scenarios, explicitly set this value. + # Example: If main SeaweedFS is deployed in "production" namespace: + # adminServer: "seaweedfs-admin.production.svc:33646" + adminServer: "" # Workers need storage for task execution # Note: Workers use a Deployment, which does not support `volumeClaimTemplates` @@ -282,6 +290,8 @@ worker: maxConcurrent: 2 # REQUIRED: Point to the admin service of your main SeaweedFS release # Replace with the namespace where your main seaweedfs is deployed + # Example: If deploying in namespace "production": + # adminServer: "seaweedfs-admin.production.svc:33646" adminServer: "seaweedfs-admin..svc:33646" ``` @@ -306,6 +316,8 @@ worker: maxConcurrent: 1 # REQUIRED: Point to the admin service of your main SeaweedFS release # Replace with the namespace where your main seaweedfs is deployed + # Example: If deploying in namespace "production": + # adminServer: "seaweedfs-admin.production.svc:33646" adminServer: "seaweedfs-admin..svc:33646" ``` diff --git a/k8s/charts/seaweedfs/templates/worker/worker-service.yaml b/k8s/charts/seaweedfs/templates/worker/worker-service.yaml index b7f60e52f..cf9885e2f 100644 --- a/k8s/charts/seaweedfs/templates/worker/worker-service.yaml +++ b/k8s/charts/seaweedfs/templates/worker/worker-service.yaml @@ -24,4 +24,3 @@ spec: app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: worker {{- end }} - diff --git a/k8s/charts/seaweedfs/templates/worker/worker-servicemonitor.yaml b/k8s/charts/seaweedfs/templates/worker/worker-servicemonitor.yaml index 63ac3ba7a..7f9590dab 100644 --- a/k8s/charts/seaweedfs/templates/worker/worker-servicemonitor.yaml +++ b/k8s/charts/seaweedfs/templates/worker/worker-servicemonitor.yaml @@ -31,5 +31,3 @@ spec: {{- end }} {{- end }} {{- end }} - -