aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author泽淼 周 <zhouzemiao@ihuman.com>2025-09-26 20:27:59 +0800
committerChris Lu <chrislusf@users.noreply.github.com>2025-12-06 18:53:22 -0800
commit9c615d4039470e9367ee3b9f541814b63a7b986e (patch)
tree7883610939f45947655bf5673dd99815e9b24c73
parent2828d5a05c36aa8719778142eb4472007906f14c (diff)
downloadseaweedfs-csi-driver-9c615d4039470e9367ee3b9f541814b63a7b986e.tar.xz
seaweedfs-csi-driver-9c615d4039470e9367ee3b9f541814b63a7b986e.zip
feat: seaweedfs-mount daemonset
-rw-r--r--deploy/kubernetes/seaweedfs-csi.yaml57
1 files changed, 57 insertions, 0 deletions
diff --git a/deploy/kubernetes/seaweedfs-csi.yaml b/deploy/kubernetes/seaweedfs-csi.yaml
index 776a88f..a8d7656 100644
--- a/deploy/kubernetes/seaweedfs-csi.yaml
+++ b/deploy/kubernetes/seaweedfs-csi.yaml
@@ -222,6 +222,7 @@ spec:
- --endpoint=$(CSI_ENDPOINT)
- --filer=$(SEAWEEDFS_FILER)
- --nodeid=$(NODE_ID)
+ - --mountEndpoint=$(MOUNT_ENDPOINT)
- --cacheDir=/var/cache/seaweedfs
- --dataLocality=none
- --components=node
@@ -234,6 +235,8 @@ spec:
valueFrom:
fieldRef:
fieldPath: spec.nodeName
+ - name: MOUNT_ENDPOINT
+ value: unix:///var/lib/seaweedfs-mount/seaweedfs-mount.sock
ports:
- containerPort: 9808
name: healthz
@@ -258,6 +261,8 @@ spec:
name: device-dir
- name: cache
mountPath: /var/cache/seaweedfs
+ - name: mount-socket-dir
+ mountPath: /var/lib/seaweedfs-mount
resources:
null
@@ -338,6 +343,58 @@ spec:
path: /dev
- name: cache
emptyDir: {}
+ - name: mount-socket-dir
+ hostPath:
+ path: /var/lib/seaweedfs-mount
+ type: DirectoryOrCreate
+---
+kind: DaemonSet
+apiVersion: apps/v1
+metadata:
+ name: seaweedfs-mount
+spec:
+ selector:
+ matchLabels:
+ app: seaweedfs-mount
+ updateStrategy:
+ type: RollingUpdate
+ rollingUpdate:
+ maxUnavailable: 25%
+ template:
+ metadata:
+ labels:
+ app: seaweedfs-mount
+ spec:
+ priorityClassName: system-node-critical
+ serviceAccountName: seaweedfs-node-sa
+ containers:
+ - name: seaweedfs-mount
+ image: chrislusf/seaweedfs-mount:latest
+ imagePullPolicy: IfNotPresent
+ args:
+ - --endpoint=$(MOUNT_ENDPOINT)
+ env:
+ - name: MOUNT_ENDPOINT
+ value: unix:///var/lib/seaweedfs-mount/seaweedfs-mount.sock
+ ports:
+ - containerPort: 9808
+ name: healthz
+ protocol: TCP
+ livenessProbe:
+ httpGet:
+ path: /healthz
+ port: healthz
+ initialDelaySeconds: 10
+ timeoutSeconds: 3
+ periodSeconds: 60
+ volumeMounts:
+ - name: mount-socket-dir
+ mountPath: /var/lib/seaweedfs-mount
+ volumes:
+ - name: mount-socket-dir
+ hostPath:
+ path: /var/lib/seaweedfs-mount
+ type: DirectoryOrCreate
---
# Source: seaweedfs-csi-driver/templates/deployment.yaml
kind: Deployment