Persistent Volumes in your home Kubernetes cluster

Summary

We will deploy rook cluster storage service into the baremetal cluster.

Prerequisites

You should have a Baremetal Kubernetes cluster at least version 1.8. If you don’t, I recommend taking a look at:

Home Kubernetes cluster in 15 minutes with kubeadm and calico

According to rook’s documentation you should also have at least 5GB of disk space on the drive you want to use for storage.

Let’s do it

First we need to prepare the baremetal machine for rook’s persistent volumes:

Clone the rook’s repo and apply the configuration to the cluster.

Remember! Always make sure you are targetting correct cluster by running

before applying any configuration!

Rook operator and agent should be up and running. You can check that by running:

Before we start requesting the storage we still need to create rook’s StorageClasss and storage pool. Run following commands in the same folder:

At this point cluster should be ready to provision persistent volumes. Let’s test it using simple application:

This Post Has One Comment

Leave a Reply

Close Menu