创建用户(建议不用admin用户),并赋权
ceph auth get-or-create client.k8s mon 'allow r' mds 'allow r,allow rw path=/' osd 'allow rw pool=cephfs_data' -o ceph.client.k8s.keyring
查看用户访问token
查看ceph.client.k8s.keyring文件中的token
在k8s master上
[root@k8s-test test]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Wed Mar 3 21:37:06 2021
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=0148d48c-01b0-4922-9c85-d6da3904e5f0 / xfs defaults 0 0
UUID=d3fc88af-eaad-4fe3-a4ea-b09724923d9f /boot xfs defaults 0 0
#UUID=6b704b41-627c-4095-a700-913563df0ffa swap