Ceph FileSystem Basics & Kubernetes

Using Ceph Cluster for Kubernetes: Part 2

DaeGon Kim
3 min readNov 12, 2022

Ceph provides three interfaces: block storage, file systems, object storage. In this article, we take a look at the basic use of its file systems. We will proceed in the following order

  1. Create a ceph file system
  2. Create a user with Ceph file system permission
  3. Generate files for file system clients
  4. Mount the Ceph file system on Linux (Ubuntu)
  5. Provide a Ceph file system as a backing storage for Kubernetes provisioner

Ceph File System Creation

Now, let’s create a file system in the ceph cluster. Please note that the cluster being used here is described in the previous article.

sudo ceph fs volume create [cephfs name]

We created a file system named cephfs-linux.

User Creation

We need a client/user that can access this file system. Let’s create one.

sudo ceph fs authorize [cephfs name] client.[client name] / rw

This will create a new ceph client who can read/write the file system.

Files for Ceph file system users

--

--