安装rook

kubernetes rook 安装 cephfs ceph root kubernete osd uuid partuuid 阅读详情

Quickstart Guide

Welcome to Rook! We hope you have a great experience installing the Rook storage platform to enable highly available, durable storage in your cluster. If you have any questions along the way, please don't hesitate to ask us in our Slack channel.

This guide will walk you through the basic setup of a Rook cluster. This will enable you to consume block, object, and file storage from other pods running in your cluster.

Minimum Version

Kubernetes v1.6 or higher is targeted by Rook (while Rook is in alpha it will track the latest release to use the latest features).

Support is available for Kubernetes v1.5.2, although your mileage may vary. You will need to use the yaml files from the 1.5 folder.

Prerequisites

To make sure you have a Kubernetes cluster that is ready for Rook, you can follow these instructions.

If you are using dataDirHostPath to persist rook data on kubernetes hosts, make sure your host has at least 5GB of space available on the specified path.

TL;DR

If you're feeling lucky, a simple Rook cluster can be created with the following kubectl commands. For the more detailed install, skip to the next section to deploy the Rook operator.

cd cluster/examples/kubernetes
kubectl create -f rook-operator.yaml
kubectl create -f rook-cluster.yaml

After the cluster is running, you can create block, object, or file storage to be consumed by other applications in your cluster.

Deploy the Rook Operator

The first step is to deploy the Rook system components, which include the Rook agent running on each node in your cluster as well as Rook operator pod.

cd cluster/examples/kubernetes
kubectl create -f rook-operator.yaml

# verify the rook-operator and rook-agents pods are in the `Running` state before proceeding
kubectl -n rook-system get pod

You can also deploy the operator with the Rook Helm Chart.


Restart Kubelet

(K8S 1.7.x and older only)

For versions of Kubernetes prior to 1.8, the Kubelet process on all nodes will require a restart after the Rook operator and Rook agents have been deployed. As part of their initial setup, the Rook agents deploy and configure a Flexvolume plugin in order to integrate with Kubernetes' volume controller framework. In Kubernetes v1.8+, the dynamic Flexvolume plugin discovery will find and initialize our plugin, but in older versions of Kubernetes a manual restart of the Kubelet will be required.

Disable Attacher-detacher controller

(K8S 1.6.x only)

For Kubernetes 1.6, it is also necessary to pass the --enable-controller-attach-detach=false flag to Kubelet when you restart it. This is a workaround for a Kubernetes issue that only affects 1.6.


Create a Rook Cluster

Now that the Rook operator and agent pods are running, we can create the Rook cluster. For the cluster to survive reboots, make sure you set the dataDirHostPath property. For more settings, see the documentation on configuring the cluster.

Save the cluster spec as rook-cluster.yaml:

apiVersion: v1
kind: Namespace
metadata:
  name: rook
---
apiVersion: rook.io/v1alpha1
kind: Cluster
metadata:
  name: rook
  namespace: rook
spec:
  dataDirHostPath: /var/lib/rook
  storage:
    useAllNodes: true
    useAllDevices: false
    storeConfig:
      storeType: bluestore
      databaseSizeMB: 1024
      journalSizeMB: 1024

Create the cluster:

kubectl create -f rook-cluster.yaml

Use kubectl to list pods in the rook namespace. You should be able to see the following pods once they are all running:

$ kubectl -n rook get pod
NAME                              READY     STATUS    RESTARTS   AGE
rook-ceph-mgr0-1279756402-wc4vt   1/1       Running   0          5m
rook-ceph-mon0-jflt5              1/1       Running   0          6m
rook-ceph-mon1-wkc8p              1/1       Running   0          6m
rook-ceph-mon2-p31dj              1/1       Running   0          6m
rook-ceph-osd-0h6nb               1/1       Running   0          5m

Storage

For a walkthrough of the three types of storage exposed by Rook, see the guides for:

  • Block: Create block storage to be consumed by a pod
  • Object: Create an object store that is accessible inside or outside the Kubernetes cluster
  • Shared File System: Create a file system to be shared across multiple pods

Tools

We have created a toolbox container that contains the full suite of Ceph clients for debugging and troubleshooting your Rook cluster. Please see the toolbox readme for setup and usage information. Also see our advanced configuration document for helpful maintenance and tuning examples.

Monitoring

Each Rook cluster has some built in metrics collectors/exporters for monitoring with Prometheus. To learn how to set up monitoring for your Rook cluster, you can follow the steps in the monitoring guide.

Teardown

When you are done with the test cluster, see these instructions to clean up the cluster.

# 使用Rook安装Ceph# Ceph 是一种高度可扩展的分布式存储解决方案,适用于和,经过多年的生产部署。Rook 使 Ceph 存储系统能够使用 Kubernetes 原语在 Kubernetes 上运行。下图展示了 Ceph Rook 如何与 Kubernetes 集成:通过在 Kubernetes 集群中运行 Ceph,Kubernetes 应用程序可以挂载由 Rook 管理的块设备和文件系统,或者可以使用 S3/Swift API 进行对象存储。Rook 操作员可自动配置存储组件并监控集群,以确保存储保持可用且正常运行。 阅读详情

相关推荐

rook安装ceph为kubevirt虚拟机提供存储(二)

kubernetes kubevirt rook ceph

BY_xiaopeng的博客 1459

error: error validating “pod-nginx.yaml“: error validating data: apiVersion not set; if you choose t

因为我个人非常喜欢用快捷键在用vim 编辑文件几乎也是直接shift+ins直接粘贴然后shift+zz直接保存,就没有看文本类容,一直卡在这里了,今天我仔细看了一下才发现用Xshell的时候shift+ins直接粘贴,真是坑死人的bug啊!希望广大攻城狮特别注意!记录一下最近玩k8s,linux系统踩坑。

Fanzongshen的博客 5559

TCP协议中ARQ自动重传的三种实现方式对比(含SACK详解)

本文深入解析TCP协议中ARQ自动重传的三种实现方式,包括停止-等待、回退N步和选择重传协议,特别详细介绍了SACK机制的工作原理和优势。通过对比分析各协议的效率、复杂度和适用场景,为网络通信中的可靠性传输提供了实用的选型指南。

weixin_30776273的博客 462

error: error validating “deployment. yaml“: error validating data: apiVersion not set; if you choose

错误:验证“部署”错误。yaml":错误验证数据:apiVersion未设置;如果您选择忽略这些错误,请使用——validate=false关闭验证 有可能是yuml文件书写错误,部署时最好复制粘贴,别手敲。 我这次的错误原因是在于没有按a进入编辑模式,直接粘贴,导致内容缺失。所以报错无法创建。 重新修改文件内容后成功创建。 ...

weixin_45387943的博客 4748

解决redhat8/centos8无法使用yum问题(报错:This system is not registered to Red Hat Subscription Management)

解决redhat无法使用yum问题、以及替换repo文件后仍无法使用yum的问题

qq_43569119的博客 4342

Xlinx PG151 除法器IP 笔记

对Xlinx 除法器IP PG151中部分内容记录备忘。

weixin_50515160的博客 2528

helm 部署 rook-ceph(腾讯云镜像仓库)

helm 安装 rook-ceph(腾讯云镜像仓库)

weixin_44797299的博客 1204

C++继承与多态 - 继承多态原理01

C++继承多态原理讲解

大秦坑王的专栏 2980

k8s-8_-rook介绍与使用

k8s-8_Kubernetes-rook介绍与使用

mingqing的博客 2103

手把手教你配置微信商户平台IP白名单:企业付款到零钱必备步骤

本文详细解析了微信商户平台IP白名单的配置原理与实操步骤,这是实现企业付款到零钱功能的关键安全环节。文章从理解IP白名单的安全逻辑出发,指导开发者精准定位服务器公网IP,并提供了在商户平台后台的详细配置流程与常见问题排查指南,帮助开发者高效完成配置,确保企业付款API的顺利调用。

weixin_29326909的博客 738

MATLAB实战:用ARMAX模型搞定电力系统惯量评估(附完整代码)

本文详细介绍了如何利用MATLAB中的ARMAX模型进行电力系统惯量评估,解决新能源占比提高带来的系统惯量下降问题。通过系统辨识技术,从电网运行数据中准确提取惯量参数,并提供完整的代码实现,帮助工程师快速应用于实际工程。

peach的博客 638

k8s部署rook-ceph记录

我是cenos7.4的系统,错误安装了ceph17.2后,一切看上去均正常,但是就是无法挂载pv到容器上,经过查了无数资料, 确定centos7 系统安装ceph 15.2 是比较稳妥的做法。以下文件是修改过后的operator.yaml配置文件,用于rook-operator的自定义配置, 我个人对此文件只对cpu限制部门进行修改,缩小了默认请求配置,其他项目均为修改。由于容器镜像均无法正常访问,因此推荐安装镜像代理服务,自动使用镜像代理服务拉取新创建的 Pod 中的外网容器镜像(仅限公有镜像)。

quadimodo的博客 2399

米哈游运维面试题及参考答案

Linux 系统运行级别是用于定义系统启动时所需要达到的功能状态。运行级别 0:表示系统停机状态,用于关闭系统,是系统的关机级别。当系统切换到这个级别时,会停止所有的服务和进程,然后关闭系统。运行级别 1:也称为单用户模式。在这个级别下,系统只启动基本的系统服务和必要的进程,仅允许 root 用户登录系统进行维护操作,常用于系统出现故障需要紧急修复的情况,比如修复文件系统错误、重置 root 密码等。运行级别 2:多用户模式,但不支持网络文件系统(NFS)。

大模型大数据攻城狮的专栏 747

Rook 项目安装与配置指南

Rook 项目安装与配置指南 1. 项目基础介绍 Rook 是一个开源项目,旨在提供3D打印机的设计和制造资源。该项目包含了3D打印机的CAD文件、配置文件以及 STL 文件等,用户可以基于这些资源自行组装 3D 打印机。项目主要使用的编程语言为 C++,同时也涉及到一些配置文件的处理。 2. 项目使用的关键技术和框架 C++:项目的主要编程语言,用于编写控制打印机的底层逻辑。 CAD软件:用于...

gitblog_00026的博客 693

第20期-英伟达笔试题型解析

英伟达作为AI领域的缔造者及硬件基石,是这几年最为炙手可热的公司。英伟达以其高性能GPU设计闻名,硬件工程师岗位的招聘通常包括笔试和技术面试,考察领域涵盖数字电路设计、处理器架构、嵌入式系统和信号处理等。通过搜索公开平台,收集了候选人的面试经历和相关技术问题,,通过分析公开平台收集的笔试面试经验,结合英伟达的GPU架构特点,整理出可能涉及的典型题目,并提供详细解析。 以下是基于英伟达(Nvidia)硬件工程师笔试题型的解析与总结,涵盖核心知识点、解题思路及案例分析。

启芯硬件的博客 746

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

rook-ceph安装

最大的好处,简化了Ceph的安装,其实用最新的Cephadm安装也不是很麻烦 需要有K8s环境 github 地址 rook支持多种存储,不过截至文章发布日,只有Ceph是处于stable的 安装文档地址 安装 在K8s的节点上的存储的要求: Raw devices (no partitions or formatted filesystems) Raw partitions (no formatted filesystem) PVs available from a sto..

cumt_TTR的专栏 532

efm32 入门.pdf

本PDF共计22页,介绍的是操作驱动API,下载与否自己斟酌。

Centos7 k8s 集群 - Rook Ceph 安装

rook的版本大于1.3,无法使用目录创建集群,要使用单独的裸盘进行创建,也就是创建一个新的磁盘,挂载到宿主机,不进行格式化,直接使用即可。修改Rook CSI镜像地址,原本的地址可能是gcr的镜像,但是gcr的镜像无法被国内访问,所以需要同步gcr的镜像到阿里云镜像仓库。等待容器启动,只有都running才能进行下一步。待容器Running后,即可执行相关命令。直接添加一个sdb硬盘,不需要格式化。待osd-x的容器启动,表示安装成功。

weixin_40398522的博客 1568

jre9下载 jdk9

(Java SE Runtime Environment 9.0) 9.0u175 官方最新版 【x86|x64】

jdk-8u144-linux-x64.tar.gz.

该资源为搭建Linux系统Java环境用,资源的后缀为tar.gz格式的压缩包

k8s中利用rook安装ceph集群

利用rook 1.6在kubernetes中安装ceph集群

piaobeizu2011的专栏 1581

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.7 docker pull registry.aliyuncs.com/it00021hot/ce.

evolution23的博客 1079

使用Rook安装Ceph

layout: post title: 使用Rook安装Ceph catalog: true tag: [K8S, Ceph] 1. Rook简介 2. Rook架构 3. Rook部署 3.1. 前提 3.2. 环境描述 3.3. 部署 3.3.1. 获取rook代码 3.3.2. 修改变量 3.3.2.1. cluster.yaml 3.3.2.2. operator.yaml 3.3.2.3. 其他配置 3.3.3. 开始部署 3.3.4. 部署成功的状态 3.3.4.1. po状态.

Moolight_shadow的专栏 2403

Kubernetes 安装 Rook Ceph 存储

资料: 官网:https://rook.io 官网教学:https://rook.io/docs/rook/v1.6/ceph-quickstart.html 部署环境准备 1、kubernetes集群安装 kubernetes集群安装 2、检查所有磁盘 lsblk -f NAME FSTYPE LABEL UUID MOUNT...

liulu07的博客 419

k8s1.20集群安装rook-ceph分布式存储方案

Rook 是一个开源云原生存储,为各种存储解决方案提供平台、框架和支持,以便与云原生环境原生集成。Rook 将存储软件转变为自我管理、自我扩展和自我修复的存储服务。它通过自动化部署、引导、配置、预配、缩放、升级、迁移、灾难恢复、监视和资源管理来实现这一点。Rook 使用底层云原生容器管理、调度和编排平台提供的设施来履行其职责。Rook 利用扩展点深度集成到云原生环境中,并为调度、生命周期管理、资源管理、安全性、监控和用户体验提供无缝体验。二,先决条件。

命运下的祥子的博客 1105

k8s通过rook安装ceph存储

rook搭建ceph

qq_40573385的博客 1430

kubernetes动态存储Rook

云原生存储Rook实战

m0_71788802的博客 2458

Centos7.9在K8s安装生产级别的分布式存储Rook+Ceph

在k8s云原生平台中,存储是除了网络之外的另一个核心,因为他涉及到了数据的保存,以及容灾等一系列的问题,做生产级别的应用,一定要具有多节点分布式,灾备及时恢复,数据平滑迁移等多种特性。Rook+Ceph就是我们在生产中常用的k8s存储方案。接下来,我们在k8s上安装该存储系统。

机核动力的博客 1426

Rook 0.8 安装及Dashboard的问题和解决

2019独角兽企业重金招聘Python工程师标准>>> ...

weixin_34414650的博客 334
上一篇: Kubeadm @Centos 7.4 安装 Kubernetes 1.9.1
下一篇: Rook: Cloud Native On-Premises Persistent Storage for Kubernetes on Kubernetes
hxpjava1
博客等级 码龄19年 1365粉丝 511原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

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

抵扣说明:

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

余额充值