diff options
| author | renweijun <56940749@qq.com> | 2022-10-25 08:25:42 +0800 |
|---|---|---|
| committer | Chris Lu <chrislusf@users.noreply.github.com> | 2024-05-28 08:40:37 -0700 |
| commit | f1dc976f079bf67edb5d053f8faa4e7427160728 (patch) | |
| tree | 0e7074230c88369b0f43d6641b06512868143227 | |
| parent | 8d82e4de0157dbb343bed1e6004ef5c48eaf9b1c (diff) | |
| download | seaweedfs-csi-driver-f1dc976f079bf67edb5d053f8faa4e7427160728.tar.xz seaweedfs-csi-driver-f1dc976f079bf67edb5d053f8faa4e7427160728.zip | |
Update README.md
| -rw-r--r-- | README.md | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 ``` |
