Prerequisites

Rook can be installed on any existing Kubernetes clusters as long as it meets the minimum version and have the required privilege to run in the cluster (see below for more information). If you dont have a Kubernetes cluster, you can quickly set one up using Minikube, Kubeadm or CoreOS/Vagrant.

Minimum Version

Kubernetes v1.7 or higher is supported by Rook.

Privileges and RBAC

Rook requires privileges to manage the storage in your cluster. See the details here for setting up RBAC.

Flexvolume Configuration

The Rook agent requires setup as a Flex volume plugin to manage the storage attachments in your cluster. See the Flex Volume Configuration topic to configure your Kubernetes deployment to load the Rook volume plugin.

Bootstrapping Kubernetes

Rook will run wherever Kubernetes is running. Here are some simple environments to help you get started with Rook.

Minikube

To install minikube, refer to this page. Once you have minikube installed, start a cluster by doing the following:

  1. $ minikube start
  2. Starting local Kubernetes cluster...
  3. Starting VM...
  4. SSH-ing files into VM...
  5. Setting up certs...
  6. Starting cluster components...
  7. Connecting to cluster...
  8. Setting up kubeconfig...
  9. Kubectl is now configured to use the cluster.

After these steps, your minikube cluster is ready to install Rook on.

Kubeadm

You can easily spin up Rook on top of a kubeadm cluster. You can find the instructions on how to install kubeadm in the Install kubeadm page.

By using kubeadm, you can use Rook in just a few minutes!

New local Kubernetes cluster with Vagrant

For a quick start with a new local cluster, use the Rook fork of coreos-kubernetes. This will bring up a multi-node Kubernetes cluster with vagrant and CoreOS virtual machines ready to use Rook immediately.

  1. git clone https://github.com/rook/coreos-kubernetes.git
  2. cd coreos-kubernetes/multi-node/vagrant
  3. vagrant up
  4. export KUBECONFIG="$(pwd)/kubeconfig"
  5. kubectl config use-context vagrant-multi

Then wait for the cluster to come up and verify that kubernetes is done initializing (be patient, it takes a bit):

  1. kubectl cluster-info

Once you see a url response, your cluster is ready for use by Rook.

Using Rook in Kubernetes

Now that you have a Kubernetes cluster running, you can start using Rook with these steps.

Using Rook on Tectonic Bare Metal

Follow these instructions to run Rook on Tectonic Kubernetes