在Kubernetes中搭建ceph的StorageClass
搭建Ceph集群
注意
此文中的ceph只支持mimic以下的版本,推荐使用luminous版本
设备需求
操作系统 | 数量 | CPU | 内存 | 磁盘 |
---|---|---|---|---|
CentOS7 | 2或者3 | 2 | 2G | 200G |
配置ssh互信
- 配置3台设备的HostName以及hosts文件
hostname hosts cephNode1 /etc/hosts文件配置3台设备的IP和hostname cephNode2 /etc/hosts文件配置3台设备的IP和hostname cephNode3 /etc/hosts文件配置3台设备的IP和hostname - 做ssh互信
ssh-copy-id ${hostname}
安装Ceph
- 配置ceph的repo (配置阿里云的即可)
[ceph] name=ceph baseurl=http://mirrors.aliyun.com/ceph/rpm-luminous/el