rancher +k8s 安装 rook ceph
官网:https://www.rook.io/前提条件:已部署完成 rancher+k8s系统,没有完成的请移步《Centos7 通过RKE 部署 高可用k8s+rancher》一、镜像下载,我们需要将安装所需要的镜像从阿里云下载到本地(重要)对应的版本号可查看 rook ceph中的operator.yaml配置文件docker image pull rook/ceph:v1.6.7docker
前提条件:已部署完成 rancher+k8s系统,没有完成的请移步《Centos7 通过RKE 部署 高可用k8s+rancher》
一、镜像下载,我们需要将安装所需要的镜像从阿里云下载到本地(重要)
对应的版本号可查看 rook ceph中的operator.yaml配置文件
docker image pull rook/ceph:v1.6.7
docker pull registry.aliyuncs.com/it00021hot/cephcsi:v3.3.1
docker pull registry.aliyuncs.com/it00021hot/csi-node-driver-registrar:v2.2.0
docker pull registry.aliyuncs.com/it00021hot/csi-attacher:v3.2.1
docker pull registry.aliyuncs.com/it00021hot/csi-provisioner:v2.2.2
docker pull registry.aliyuncs.com/it00021hot/csi-snapshotter:v4.1.1
docker pull registry.aliyuncs.com/it00021hot/csi-resizer:v1.2.0
docker tag registry.aliyuncs.com/it00021hot/csi-snapshotter:v4.1.1 k8s.gcr.io/sig-storage/csi-snapshotter:v4.1.1
docker tag registry.aliyuncs.com/it00021hot/csi-resizer:v1.2.0 k8s.gcr.io/sig-storage/csi-resizer:v1.2.0
docker tag registry.aliyuncs.com/it00021hot/cephcsi:v3.3.1 quay.io/cephcsi/cephcsi:v3.3.1
docker tag registry.aliyuncs.com/it00021hot/csi-node-driver-registrar:v2.2.0 k8s.gcr.io/sig-storage/csi-node-driver-registrar:v2.2.0
docker tag registry.aliyuncs.com/it00021hot/csi-attacher:v3.2.1 k8s.gcr.io/sig-storage/csi-attacher:v3.2.1
docker tag registry.aliyuncs.com/it00021hot/csi-provisioner:v2.2.2 k8s.gcr.io/sig-storage/csi-provisioner:v2.2.2
docker image rm registry.aliyuncs.com/it00021hot/csi-snapshotter:v4.1.1
docker image rm registry.aliyuncs.com/it00021hot/csi-resizer:v1.2.0
docker image rm registry.aliyuncs.com/it00021hot/cephcsi:v3.3.1
docker image rm registry.aliyuncs.com/it00021hot/csi-node-driver-registrar:v2.2.0
docker image rm registry.aliyuncs.com/it00021hot/csi-attacher:v3.2.1
docker image rm registry.aliyuncs.com/it00021hot/csi-provisioner:v2.2.2
二、安装
——这里基本上按照官网流程操作就行了(详情可进入官网查看)
这里需要注意一下:安装ceph需要满足一下两个条件之一:
1、原始设备,没有被格式化或分区
2、硬盘已分区,但对应的分区没有格式化文件系统。
可通过 lsblk -f 命令查看
——下载安装
git clone --single-branch --branch v1.6.7 https://github.com/rook/rook.git
cd rook/cluster/examples/kubernetes/ceph
kubectl create -f crds.yaml -f common.yaml -f operator.yaml
kubectl create -f cluster.yaml
更多推荐
所有评论(0)