Kubernetes----------------------------Rook Deploy CephCluster
Quickstart
Minimum Version
Kubernetes v1.17 or higher is supported by Rook.
CPU Architecture
Architectures released are amd64 / x86_64 and arm64.
Prerequisites
To make sure you have a Kubernetes cluster that is ready for Rook, you can follow these instructions.
In order to configure the Ceph storage cluster, at least one of these local storage options are required:
为了配置Ceph存储集群,至少需要以下一种本地存储选项:
- Raw devices (no partitions or formatted filesystems). 原始设备(没有分区或格式化文件系统)
- This requires
lvm2to be installed on the host. To avoid this dependency, you can create a single full-disk partition on the disk (see below) Yum install -y lvm2 - Raw partitions (no formatted filesystem)
注: 手动给每天个node节点新盘创建GPT header后,部署OSD正常!
parted /dev/sdb mklabel gpt mkpart primary 0 -1 新盘只分一个区 输入: Ignore q

部署命令
$ git clone --single-branch --branch master 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
创建rook-ceph-tools工具
kubectl -n rook-ceph exec -it deploy/rook-ceph-tools -- bash
Rook-ceph 修复工具
kubectl -n rook-ceph edit ConfigMap rook-config-override -o yaml
# config: |
# [global]
# mon clock drift allowed = 1
访问Web Ceph Dashboard

1.
kubectl port-forward --address 0.0.0.0 service/rook-ceph-mgr-dashboard 40459:8443 -n rook-ceph
#使用有端口转发,访问ceph-dashboard
2.
cd rook/deploy/examples/
kubectl create -f dashboard-external-https.yaml
访问地址,注意是https,http会访问不成功 https://172.17.1.62:40459/#/dashboard 默认用户名为 admin 密码获取方式执行如下命令 kubectl -n rook-ceph get secret rook-ceph-dashboard-password -o jsonpath="{['data']['password']}" | base64 --decode && echo
Ceph Dashboard首页,点击首页小齿轮修改admin的密码

node节点硬盘osd.id 初始化错误处理
DISK="/dev/vdb" sgdisk --zap-all --clear --mbrtogpt $DISK
浙公网安备 33010602011771号