不好用,需要用到第三方 storageclass Provisioner,考虑使用 glusterfs,有官方 provisioner。
$ ceph osd pool create kube.dev.fs.meta 8
$ ceph fs new cephfs kube.dev.fs.meta kube.dev.fs
一个ceph集群只能创建一个cephfs
# ceph fs new production_fs kube.production.fs.meta kube.production.fs Error EINVAL: Creation of multiple filesystems is disabled. To enable this experimental feature, use 'ceph fs flag set enable_multiple true'
192.168.199.81:6789:/ /mycephfs ceph name=admin,secret=AQD/9AZb41OsJRAAhgKm6sw/LItSdb33wFQRpA==,noatime 0 2