Deploying a Ceph cluster with Rook

To deploy a Ceph cluster with Rook and Kubernetes, Vagrant will be used to create three VMs that will run the Kubernetes cluster.

The first task you'll complete is the deployment of three VMs via Vagrant. If you have followed the steps at that start of this chapter and used Vagrant to build an environment for Ansible, then you should have everything you require to deploy VMs for the Kubernetes cluster.

The following is the Vagrantfile to bring up three VMs; as before, place the contents into a file called Vagrantfile in a new directory and then run vagrant up:

nodes = [  { :hostname => 'kube1',  :ip => '192.168.0.51', :box => 'xenial64', :ram => 2048, :osd => 'yes' }, { :hostname => 'kube2', :ip => '192.168.0.52', ...

Get Mastering Ceph - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.