Ceph FileSystem Basics & Kubernetes
Using Ceph Cluster for Kubernetes: Part 2
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
- Create a ceph file system
- Create a user with Ceph file system permission
- Generate files for file system clients
- Mount the Ceph file system on Linux (Ubuntu)
- 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.