Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Block storage allows a single pod to mount storage. This page shows how to create a simple web application on Kubernetes using persistent volumes enabled by Rook.

Provision Storage

Info
titleNote

This sample requires at least 1 OSD per node, with each OSD located on 3 different nodes.

Before Rook can provision storage, aStorageClassand and CephBlockPool need to be created. This will allow Kubernetes to interoperate with Rook when provisioning PVs. So let's create these two components

Code Block
languagebash
titleSC and CephBlockPool
collapsetrue
# The file, is located in the path "rook/cluster/examples/kubernetes/ceph/csi/rbd", already contains both components
$ kkubectl create -f storageclass.yaml

Inside the same folder there are other files, including pod.yaml and pvc.yaml, useful for carrying out some quick tests.