csi-cephfs-plugin
1. 编译CSI CephFS plugin
CSI CephFS plugin用来提供CephFS存储卷和挂载存储卷,源码参考:https://github.com/ceph/ceph-csi 。
1.1. 编译二进制
1.2. 编译Docker镜像
2. 配置项
2.1. 命令行参数
Option | Default value | Description |
---|---|---|
|
| CSI endpoint, must be a UNIX socket |
|
| name of the driver (Kubernetes: |
| empty | This node’s ID |
| empty | default volume mounter. Available options are |
2.2. volume参数
Parameter | Required | Description |
---|---|---|
| yes | Comma separated list of Ceph monitors (e.g. |
| no | Mount method to be used for this volume. Available options are |
| yes | Mode of operation. BOOL value. If |
| for | Ceph pool into which the volume shall be created |
| for | Root path of an existing CephFS volume |
| for Kubernetes | name of the Kubernetes Secret object containing Ceph client credentials. Both parameters should have the same value |
| for Kubernetes | namespaces of the above Secret objects |
2.3. provisionVolume
2.3.1. 管理员密钥认证
当provisionVolume=true时,必要的管理员认证参数如下:
adminID
: ID of an admin clientadminKey
: key of the admin client
2.3.2. 普通用户密钥认证
当provisionVolume=false时,必要的用户认证参数如下:
userID
: ID of a user clientuserKey
: key of a user client
参考文章:
https://github.com/ceph/ceph-csi/blob/master/docs/deploy-cephfs.md
最后更新于