From 4589c2f1fe233168ed262bf3222d16444e8930e1 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Wed, 9 Oct 2024 15:56:52 +0200 Subject: [PATCH] Upd seaweedfs --- .../extra/seaweedfs/templates/seaweedfs.yaml | 4 ++++ .../seaweedfs/charts/seaweedfs/Chart.yaml | 4 ++-- .../templates/filer-statefulset.yaml | 8 +++++++ .../seaweedfs/templates/s3-deployment.yaml | 7 ++++-- .../seaweedfs/charts/seaweedfs/values.yaml | 22 +++++++++++++++++-- packages/system/seaweedfs/values.yaml | 1 + 6 files changed, 40 insertions(+), 6 deletions(-) diff --git a/packages/extra/seaweedfs/templates/seaweedfs.yaml b/packages/extra/seaweedfs/templates/seaweedfs.yaml index e3bea096..70cf06d2 100644 --- a/packages/extra/seaweedfs/templates/seaweedfs.yaml +++ b/packages/extra/seaweedfs/templates/seaweedfs.yaml @@ -38,6 +38,10 @@ spec: storageClass: {{ . }} {{- end }} maxVolumes: 0 + + filer: + s3: + domainName: {{ .Values.host | default (printf "s3.%s" $host) }} s3: ingress: diff --git a/packages/system/seaweedfs/charts/seaweedfs/Chart.yaml b/packages/system/seaweedfs/charts/seaweedfs/Chart.yaml index 073679af..b15380d9 100644 --- a/packages/system/seaweedfs/charts/seaweedfs/Chart.yaml +++ b/packages/system/seaweedfs/charts/seaweedfs/Chart.yaml @@ -1,6 +1,6 @@ apiVersion: v1 description: SeaweedFS name: seaweedfs -appVersion: "3.71" +appVersion: "3.74" # Dev note: Trigger a helm chart release by `git tag -a helm-` -version: 4.0.0 +version: 4.0.376 diff --git a/packages/system/seaweedfs/charts/seaweedfs/templates/filer-statefulset.yaml b/packages/system/seaweedfs/charts/seaweedfs/templates/filer-statefulset.yaml index 49b62e86..d02099e5 100644 --- a/packages/system/seaweedfs/charts/seaweedfs/templates/filer-statefulset.yaml +++ b/packages/system/seaweedfs/charts/seaweedfs/templates/filer-statefulset.yaml @@ -249,6 +249,14 @@ spec: name: metrics - containerPort: {{ .Values.filer.grpcPort }} #name: swfs-filer-grpc + {{- if .Values.filer.s3.enabled }} + - containerPort: {{ .Values.filer.s3.port }} + name: swfs-s3 + {{- if .Values.filer.s3.httpsPort }} + - containerPort: {{ .Values.filer.s3.httpsPort }} + name: swfs-s3-tls + {{- end }} + {{- end }} {{- if .Values.filer.readinessProbe.enabled }} readinessProbe: httpGet: diff --git a/packages/system/seaweedfs/charts/seaweedfs/templates/s3-deployment.yaml b/packages/system/seaweedfs/charts/seaweedfs/templates/s3-deployment.yaml index b678a0ef..fdb253b6 100644 --- a/packages/system/seaweedfs/charts/seaweedfs/templates/s3-deployment.yaml +++ b/packages/system/seaweedfs/charts/seaweedfs/templates/s3-deployment.yaml @@ -14,7 +14,6 @@ spec: selector: matchLabels: app.kubernetes.io/name: {{ template "seaweedfs.name" . }} - helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version | replace "+" "_" }} app.kubernetes.io/instance: {{ .Release.Name }} app.kubernetes.io/component: s3 template: @@ -176,9 +175,13 @@ spec: ports: - containerPort: {{ .Values.s3.port }} name: swfs-s3 + {{- if .Values.s3.httpsPort }} + - containerPort: {{ .Values.s3.httpsPort }} + name: swfs-s3-tls + {{- end }} {{- if .Values.s3.metricsPort }} - containerPort: {{ .Values.s3.metricsPort }} - name: "metrics" + name: metrics {{- end }} {{- if .Values.s3.readinessProbe.enabled }} readinessProbe: diff --git a/packages/system/seaweedfs/charts/seaweedfs/values.yaml b/packages/system/seaweedfs/charts/seaweedfs/values.yaml index 3aecc5a7..af62ac36 100644 --- a/packages/system/seaweedfs/charts/seaweedfs/values.yaml +++ b/packages/system/seaweedfs/charts/seaweedfs/values.yaml @@ -100,6 +100,15 @@ master: storageClass: "" hostPathPrefix: /ssd + # You may use ANY storage-class, example with local-path-provisioner + # Annotations are optional. + # logs: + # type: "persistentVolumeClaim" + # size: "24Ti" + # storageClass: "local-path-provisioner" + # annotations: + # "key": "value" + # You can also use emptyDir storage: # logs: # type: "emptyDir" @@ -450,7 +459,7 @@ volume: livenessProbe: enabled: true httpGet: - path: /status + path: /healthz scheme: HTTP initialDelaySeconds: 20 periodSeconds: 90 @@ -463,7 +472,7 @@ volume: readinessProbe: enabled: true httpGet: - path: /status + path: /healthz scheme: HTTP initialDelaySeconds: 15 periodSeconds: 15 @@ -535,6 +544,15 @@ filer: storageClass: "" hostPathPrefix: /storage + # You may use ANY storage-class, example with local-path-provisioner + # Annotations are optional. + # logs: + # type: "persistentVolumeClaim" + # size: "24Ti" + # storageClass: "local-path-provisioner" + # annotations: + # "key": "value" + # You can also use emptyDir storage: # logs: # type: "emptyDir" diff --git a/packages/system/seaweedfs/values.yaml b/packages/system/seaweedfs/values.yaml index 056e9bb7..576ffbad 100644 --- a/packages/system/seaweedfs/values.yaml +++ b/packages/system/seaweedfs/values.yaml @@ -81,6 +81,7 @@ seaweedfs: httpsPort: 0 # Suffix of the host name, {bucket}.{domainName} domainName: "" + #allowEmptyFolder: true # enable user & permission to s3 (need to inject to all services) enableAuth: false # set to the name of an existing kubernetes Secret with the s3 json config file