用户工具

站点工具


02-工程实践:存储:ceph:k8s_cephfs

Kubernetes使用Cephfs

不好用,需要用到第三方 storageclass Provisioner,考虑使用 glusterfs,有官方 provisioner。

snippet.bash
$ ceph osd pool create kube.dev.fs.meta 8
$ ceph fs new cephfs kube.dev.fs.meta kube.dev.fs

一个ceph集群只能创建一个cephfs

snippet.bash
# 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'

storageclass

/etc/fstab

192.168.199.81:6789:/ /mycephfs ceph  name=admin,secret=AQD/9AZb41OsJRAAhgKm6sw/LItSdb33wFQRpA==,noatime    0       2
02-工程实践/存储/ceph/k8s_cephfs.txt · 最后更改: 2020/04/07 06:34 由 annhe