aboutsummaryrefslogtreecommitdiff
path: root/deploy/kubernetes
diff options
context:
space:
mode:
author泽淼 周 <zhouzemiao@ihuman.com>2025-09-27 17:30:44 +0800
committerChris Lu <chrislusf@users.noreply.github.com>2025-12-06 18:53:22 -0800
commit1a36b03ed79a12e9b9db5954167ce825222f3d83 (patch)
tree3bd5da0c44b0c0742dcf39b905151ffbbea7e627 /deploy/kubernetes
parentf830b0309af1c0e821c12d225683191427eaa309 (diff)
downloadseaweedfs-csi-driver-1a36b03ed79a12e9b9db5954167ce825222f3d83.tar.xz
seaweedfs-csi-driver-1a36b03ed79a12e9b9db5954167ce825222f3d83.zip
fix: seaweedfs-csi.yaml volumes config
Diffstat (limited to 'deploy/kubernetes')
-rw-r--r--deploy/kubernetes/seaweedfs-csi.yaml40
1 files changed, 29 insertions, 11 deletions
diff --git a/deploy/kubernetes/seaweedfs-csi.yaml b/deploy/kubernetes/seaweedfs-csi.yaml
index b82f30c..ed1060b 100644
--- a/deploy/kubernetes/seaweedfs-csi.yaml
+++ b/deploy/kubernetes/seaweedfs-csi.yaml
@@ -369,6 +369,12 @@ spec:
serviceAccountName: seaweedfs-node-sa
containers:
- name: seaweedfs-mount
+ securityContext:
+ allowPrivilegeEscalation: true
+ capabilities:
+ add:
+ - SYS_ADMIN
+ privileged: true
image: zemiaozhou/seaweedfs-mount:latest
imagePullPolicy: IfNotPresent
args:
@@ -376,21 +382,33 @@ spec:
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: plugins-dir
+ mountPath: /var/lib/kubelet/plugins
+ mountPropagation: "Bidirectional"
+ - name: pods-mount-dir
+ mountPath: /var/lib/kubelet/pods
+ mountPropagation: "Bidirectional"
+ - mountPath: /dev
+ name: device-dir
+ - name: cache
+ mountPath: /var/cache/seaweedfs
- name: mount-socket-dir
mountPath: /var/lib/seaweedfs-mount
volumes:
+ - name: plugins-dir
+ hostPath:
+ path: /var/lib/kubelet/plugins
+ type: Directory
+ - name: pods-mount-dir
+ hostPath:
+ path: /var/lib/kubelet/pods
+ type: Directory
+ - name: device-dir
+ hostPath:
+ path: /dev
+ - name: cache
+ emptyDir: { }
- name: mount-socket-dir
hostPath:
path: /var/lib/seaweedfs-mount