Rook-ceph(1.12.9最新版)

官网的步骤

git clone --single-branch --branch v1.12.9 https://github.com/rook/rook.git
cd rook/deploy/examples
kubectl create -f crds.yaml -f common.yaml -f operator.yaml
kubectl create -f cluster.yaml

整理后的已经替换好的国内镜像的

git clone https://gitee.com/jbjb123/rook-ceph.git

cd rook-ceph/rook-ceph-1.12.9/
kubectl create -f crds.yaml -f common.yaml -f operator.yaml
kubectl create -f cluster.yaml

如果安装遇到csi-rbdplugin报错以下信息

rbd_util.go:303] modprobe failed (an error (exit status 1) occurred while running modprobe args: [rbd]): "modprobe: ERROR: could not insert 'rbd': Exec format error\n"
 16529 driver.go:154] an error (exit status 1) occurred while running modprobe args: [rbd]

请添加图片描述

需要在node节点上重新加载内核

#我的内核比较高opensuse tumbleweed
# ls /lib/modules/6.5.6-1-default/kernel/drivers/block/rbd.ko.zst
/lib/modules/6.5.6-1-default/kernel/drivers/block/rbd.ko.zst
重新加载
# modprobe rbd

请添加图片描述

重启恢复正常

csi-rbdplugin-2l6zk                                  2/2     Running     0               3h3m
csi-rbdplugin-5lfrd                                  2/2     Running     0               3h3m
csi-rbdplugin-j96zs                                  2/2     Running     0               3h3m

最后创建dashboard,tools,storageclass

kubectl apply -f dashboard-https.yaml -f toolbox.yaml -f nginx.yaml
#获取dashboard登录密码
kubectl -n rook-ceph get secret rook-ceph-dashboard-password -o jsonpath="{['data']['password']}"|base64 --decode && echo
  • 5
    点赞
  • 8
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值