Rook-Ceph Object Storage Class

DaeGon Kim
3 min readApr 17, 2024

In this article we will set up a Kubernetes object storage class using rook-ceph object storage provisioner.

Requirement & Assumption

Here, we assume that a Ceph cluster is deployed with RGW service. Basic instructions for deploying Ceph and RGW service can be found in these two articles.

More advanced configurations can be found in the article lists presented in Article on Ceph.

On Kubernetes, we assume that a cephcluster is correctly configured.

The steps for deploying a cephclusters.ceph.rook.io custom resource definition are described here.

Setup on Ceph Cluster

First we need to create a rgw user with the following command.

sudo radosgw-admin user create --uid=rgw-admin-ops-user --display-name="RGW Admin Ops User" --caps="buckets=*;users=*;usage=read;metadata=read;zone=read" --rgw-realm=<realm-name> --rgw-zonegroup=<zonegroup-name> --rgw-zone=<zone-name>

To get names of realms, zonegroups and zones, we can use these commands.

sudo radosgw-admin realm list
sudo radosgw-admin zone list
sudo radosgw-admin zonegroup list

An output of these commands are shown below.

--

--

No responses yet