Browse Source

address comments

chrislu 3 months ago
parent
commit
6050e0c3aa
  1. 7
      k8s/charts/seaweedfs/README.md
  2. 2
      k8s/charts/seaweedfs/templates/admin/admin-ingress.yaml
  3. 2
      k8s/charts/seaweedfs/templates/admin/admin-servicemonitor.yaml
  4. 2
      k8s/charts/seaweedfs/templates/admin/admin-statefulset.yaml
  5. 2
      k8s/charts/seaweedfs/templates/worker/worker-deployment.yaml
  6. 1
      k8s/charts/seaweedfs/templates/worker/worker-servicemonitor.yaml
  7. 37
      k8s/charts/seaweedfs/values.yaml

7
k8s/charts/seaweedfs/README.md

@ -221,10 +221,11 @@ worker:
adminServer: "seaweedfs-admin.<namespace>:33646"
# Workers need storage for task execution
# Note: Workers use Deployment, so they can't use dynamically provisioned PVCs
# Use emptyDir, hostPath, or existingClaim with a pre-provisioned PVC
# Note: Workers use a Deployment, which does not support `volumeClaimTemplates`
# for dynamic PVC creation per pod. To use persistent storage, you must
# pre-provision a PersistentVolumeClaim and use `type: "existingClaim"`.
data:
type: "emptyDir" # Or "hostPath" or "existingClaim"
type: "emptyDir" # Options: "emptyDir", "hostPath", or "existingClaim"
hostPathPrefix: /storage # For hostPath
# claimName: "worker-pvc" # For existingClaim with pre-provisioned PVC

2
k8s/charts/seaweedfs/templates/admin/admin-ingress.yaml

@ -42,4 +42,4 @@ spec:
serviceName: {{ template "seaweedfs.name" . }}-admin
servicePort: {{ .Values.admin.port }}
{{- end }}
{{- end }}
{{- end }}

2
k8s/charts/seaweedfs/templates/admin/admin-servicemonitor.yaml

@ -30,4 +30,4 @@ spec:
app.kubernetes.io/component: admin
{{- end }}
{{- end }}
{{- end }}
{{- end }}

2
k8s/charts/seaweedfs/templates/admin/admin-statefulset.yaml

@ -316,4 +316,4 @@ spec:
storage: {{ .Values.admin.logs.size }}
{{- end }}
{{- end }}
{{- end }}
{{- end }}

2
k8s/charts/seaweedfs/templates/worker/worker-deployment.yaml

@ -244,4 +244,4 @@ spec:
nodeSelector:
{{ tpl .Values.worker.nodeSelector . | indent 8 | trim }}
{{- end }}
{{- end }}
{{- end }}

1
k8s/charts/seaweedfs/templates/worker/worker-servicemonitor.yaml

@ -32,3 +32,4 @@ spec:
{{- end }}
{{- end }}

37
k8s/charts/seaweedfs/values.yaml

@ -1144,6 +1144,24 @@ admin:
## Set podManagementPolicy
podManagementPolicy: Parallel
# Affinity Settings
# Commenting out or setting as empty the affinity variable, will allow
# deployment to single node services such as Minikube
affinity: |
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: admin
topologyKey: kubernetes.io/hostname
# Topology Spread Constraints Settings
# This should map directly to the value of the topologySpreadConstraints
# for a PodSpec. By Default no constraints are set.
topologySpreadConstraints: ""
resources: {}
tolerations: ""
nodeSelector: ""
@ -1243,6 +1261,25 @@ worker:
podLabels: {}
podAnnotations: {}
annotations: {}
# Affinity Settings
# Commenting out or setting as empty the affinity variable, will allow
# deployment to single node services such as Minikube
affinity: |
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/name: {{ template "seaweedfs.name" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/component: worker
topologyKey: kubernetes.io/hostname
# Topology Spread Constraints Settings
# This should map directly to the value of the topologySpreadConstraints
# for a PodSpec. By Default no constraints are set.
topologySpreadConstraints: ""
resources:
requests:
cpu: "500m"

Loading…
Cancel
Save