安装配置rook-ceph

使用rook tool 

kubectl apply -f toolbox.yaml

进入rook容器:

kubectl -n rook-ceph exec -it $(kubectl -n rook-ceph get pod -l "app=rook-ceph-tools" -o jsonpath='{.items[0].metadata.name}') bash

进入容器之后执行的命令
ceph status
ceph osd status
ceph osd df
ceph osd utilization
ceph osd pool stats
ceph osd tree
ceph pg stat

查看rook集群CRD

kubectl -n rook-ceph get cephcluster
[root@dipc1 ~]# kubectl -n rook-ceph get cephcluster
NAME        DATADIRHOSTPATH   MONCOUNT   AGE   STATE     HEALTH
rook-ceph   /var/lib/rook     1          13h   Created   HEALTH_OK

删除rook

kubectl -n rook-ceph delete cephcluster rook-ceph

 

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐