Skip to content

Commit

Permalink
enhancement: update install doc with configure kubelet rootdir (#3362)
Browse files Browse the repository at this point in the history
* update install doc with configure kubelet rootdir

Signed-off-by: wangshulin <[email protected]>

* update docs

Signed-off-by: wangshulin <[email protected]>

---------

Signed-off-by: wangshulin <[email protected]>
  • Loading branch information
wangshli authored Jul 27, 2023
1 parent f31ae82 commit 966eb37
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
1 change: 1 addition & 0 deletions csi/shell/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ check_kubelet_rootdir_subfolder() {

if [ ! -d "$dir" ]; then
echo "Error: subfolder $dir does not exist, please check whether KUBELET_ROOTDIR $KUBELET_ROOTDIR is configured correctly."
echo "Please see https://github.com/fluid-cloudnative/fluid/blob/master/docs/en/userguide/install.md#advanced-configuration for more information!"
exit 1
fi
}
Expand Down
14 changes: 13 additions & 1 deletion docs/en/userguide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,4 +175,16 @@ helm install fluid --set runtime.mountRoot=/var/lib/docker/runtime-mnt fluid

```
helm install fluid --set csi.featureGates='FuseRecovery=true' fluid
```
```

3. If your Kubernetes cluster has a custom configured kubelet root directory, please configure the KUBELET_ROOTDIR when installing Fluid with the following command:
```shell
helm install --set csi.kubelet.rootDir=<kubelet-root-dir> \
--set csi.kubelet.certDir=<kubelet-root-dir>/pki fluid fluid.tgz
```

> You can execute the following command on the Kubernetes node to view the --root-dir parameter configuration:
> ```
> ps -ef | grep $(which kubelet) | grep root-dir
> ```
> If the above command has no output, the kubelet root path is the default value (/var/lib/kubelet), which is the default value set by Fluid.
12 changes: 12 additions & 0 deletions docs/zh/userguide/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -177,3 +177,15 @@ helm install fluid --set runtime.mountRoot=/var/lib/docker/runtime-mnt fluid
```
helm install fluid --set csi.featureGates='FuseRecovery=true' fluid
```

3. 如果您的Kubernetes集群自定义配置了kubelet root directory,请在安装Fluid时配置KUBELET_ROOTDIR,您可以使用以下命令:
```shell
helm install --set csi.kubelet.rootDir=<kubelet-root-dir> \
--set csi.kubelet.certDir=<kubelet-root-dir>/pki fluid fluid.tgz
```

> 您可以在Kubernetes节点上执行如下命令查看--root-dir参数配置情况:
> ```
> ps -ef | grep $(which kubelet) | grep root-dir
> ```
> 如果上述命令未找到对应结果,则说明kubelet根路径为默认值(/var/lib/kubelet),与Fluid设置的默认值一致。

0 comments on commit 966eb37

Please sign in to comment.