Rook is an open source file, block, and object storage for your cloud native environment and is based on battle tested ceph storage. Rook offers storage for your OpenShift apps through persistent volumes which can be dynamically provisioned with kubernetes StorageClass.

The installation itself is fairly simple and can be drilled down to two high-level steps

$ oc create -f rook-operator.yaml
$ oc create -f rook-cluster.yaml

Detailed Installation Steps

Author's Disclaimer:
This tutorial is for educational purpose only has not been tested for production workload by the author.

Step 1: Clone repo

$ git clone https://github.com/rook/rook.git
$ cd rook/demo/kubernetes/1.5
$ oc new-project rook

Step 2: Grant permissions to rook operator as cluster-admin

$ oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:rook:default
$ oc adm policy add-scc-to-user anyuid -z default -n rook
$ oc adm policy add-scc-to-user privileged -z default -n rook

Step 3: Create rook operator

$ oc create -f rook-operator.yaml
$ sleep 10 ##wait for rook operator to be created
$ cat rook-cluster.yaml ##for more options
$ oc create -f rook-cluster.yaml
$ oc get pods -n rook ##wait for rook cluster to be created.
$ oc create -f rook-storageclass.yaml

How do you use Rook?

You can use Rook in the same way that you use other OpenShift storage classes.

For example:

$ oc create -f mysql.yaml -n default ##inside demo/1.5/kubernetes folder.

Note: When provisioning storage, Rook uses a secret called rook-rook-user. Copy this secret to a different namespace if you want to provision storage on a namespace other than the default.

Want to know more?

1) https://rook.io/
2) https://github.com/rook/rook


关于作者

UI_Icon-Red_Hat-Close-A-Black-RGB

按频道浏览

automation icon

自动化

有关技术、团队和环境 IT 自动化的最新信息

AI icon

人工智能

平台更新使客户可以在任何地方运行人工智能工作负载

open hybrid cloud icon

开放混合云

了解我们如何利用混合云构建更灵活的未来

security icon

安全防护

有关我们如何跨环境和技术减少风险的最新信息

edge icon

边缘计算

简化边缘运维的平台更新

Infrastructure icon

基础架构

全球领先企业 Linux 平台的最新动态

application development icon

应用领域

我们针对最严峻的应用挑战的解决方案

Virtualization icon

虚拟化

适用于您的本地或跨云工作负载的企业虚拟化的未来