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?
저자 소개
채널별 검색
오토메이션
기술, 팀, 인프라를 위한 IT 자동화 최신 동향
인공지능
고객이 어디서나 AI 워크로드를 실행할 수 있도록 지원하는 플랫폼 업데이트
오픈 하이브리드 클라우드
하이브리드 클라우드로 더욱 유연한 미래를 구축하는 방법을 알아보세요
보안
환경과 기술 전반에 걸쳐 리스크를 감소하는 방법에 대한 최신 정보
엣지 컴퓨팅
엣지에서의 운영을 단순화하는 플랫폼 업데이트
인프라
세계적으로 인정받은 기업용 Linux 플랫폼에 대한 최신 정보
애플리케이션
복잡한 애플리케이션에 대한 솔루션 더 보기
가상화
온프레미스와 클라우드 환경에서 워크로드를 유연하게 운영하기 위한 엔터프라이즈 가상화의 미래