diff options
Diffstat (limited to 'deploy')
| -rw-r--r-- | deploy/kubernetes/seaweedfs-csi.yaml | 57 |
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 |
