这篇文章主要为大家展示了“docker中ceph用户管理的示例分析”,内容简而易懂,条理清晰,希望能够帮助大家解决疑惑,下面让小编带领大家一起研究并学习一下“docker中ceph用户管理的示例分析”这篇文章吧。
profile mds (Monitor only):profile bootstrap-osd (Monitor only):给与用户引导启动 osd 权限,列如批量管理⼯具profile rbd-read-only (OSD only):给予用户对 rdb 镜像只有读的权限
给予用户只有引导启动⼀个元数据服务的权限
[root@k8s-node1 ~]# ceph auth export client.adminexport auth(auid = 18446744073709551615 key=AQBavtVb2irGJBAAsbJcna7p5fdAXykjVbxznA== with 4 caps)[client.admin]key = AQBavtVb2irGJBAAsbJcna7p5fdAXykjVbxznA==caps mds = "allow *"caps mgr = "allow *"caps mon = "allow *"caps osd = "allow *"[root@k8s-node1 ~]#
[root@k8s-node1 ~]# ceph auth export client.adminexport auth(auid = 18446744073709551615 key=AQBavtVb2irGJBAAsbJcna7p5fdAXykjVbxznA== with 4 caps)[client.admin]key = AQBavtVb2irGJBAAsbJcna7p5fdAXykjVbxznA==caps mds = "allow *"caps mgr = "allow *"caps mon = "allow *"caps osd = "allow *"[root@k8s-node1 ~]#
[root@k8s-node1 ~]# ceph auth get-or-create-key client.ringo mon 'allow r' osd 'allow rw pool=test' -o ringo.txt
[root@k8s-node1 ~]# ceph auth get client.liexported keyring for client.li[client.li]key = AQDLrtlbFNYhFBAAnftA0AmtTLvEhDBOxXYxZw==caps allow rw = "mon"
[root@k8s-node1 ~]# ceph auth get-or-create-key client.ringo mon 'allow r' osd 'allow rw pool=test' -o ringo.txt
[root@k8s-node1 ~]# ceph auth get client.liexported keyring for client.li[client.li]key = AQDLrtlbFNYhFBAAnftA0AmtTLvEhDBOxXYxZw==caps allow rw = "mon"
以上是“docker中ceph用户管理的示例分析”这篇文章的所有内容,感谢各位的阅读!相信大家都有了一定的了解,希望分享的内容对大家有所帮助,如果还想学习更多知识,欢迎关注编程网行业资讯频道!