aboutsummaryrefslogtreecommitdiff
path: root/README.md
diff options
context:
space:
mode:
authorrenweijun <56940749@qq.com>2022-10-25 08:25:42 +0800
committerChris Lu <chrislusf@users.noreply.github.com>2024-05-28 08:40:37 -0700
commitf1dc976f079bf67edb5d053f8faa4e7427160728 (patch)
tree0e7074230c88369b0f43d6641b06512868143227 /README.md
parent8d82e4de0157dbb343bed1e6004ef5c48eaf9b1c (diff)
downloadseaweedfs-csi-driver-f1dc976f079bf67edb5d053f8faa4e7427160728.tar.xz
seaweedfs-csi-driver-f1dc976f079bf67edb5d053f8faa4e7427160728.zip
Update README.md
Diffstat (limited to 'README.md')
-rw-r--r--README.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/README.md b/README.md
index e106796..3fe4394 100644
--- a/README.md
+++ b/README.md
@@ -58,7 +58,15 @@ git clone https://github.com/seaweedfs/seaweedfs-csi-driver.git
```
$ helm template seaweedfs ./deploy/helm/seaweedfs-csi-driver > deploy/kubernetes/seaweedfs-csi.yaml
```
-Then apply the manifest.
+Check the kubelet root directory ,Execute the following command
+```
+ps -ef | grep kubelet | grep root-dir
+```
+If the result returned from the previous check command is not empty, the root directory (eg:--root-dir=/data/k8s/kubelet/data) representing the kubelet is not the default value (/var/lib/kubelet), so you need to update the kubelet root-dir in the CSI driven deployment file and deploy:
+```
+sed 's+/var/lib/kubelet+/data/k8s/kubelet/data+g' deploy/kubernetes/seaweedfs-csi.yaml | kubectl apply -f -
+```
+If the result returned by the previous check command is null, you can directly deploy it without modifying the configuration:
```
$ kubectl apply -f deploy/kubernetes/seaweedfs-csi.yaml
```