Difficulty: Beginner
Estimated Time: 5-60 minutes

This sandbox environment contains a fully configured three node Kubernetes cluster.

In this tutorial, you will install StorageOS v2, create a StorageClass and use it to create a persistent volume.

To install StorageOS we will proceed with the following steps:

  1. Install etcd as a prerequisite
  2. Install the StorageOS Cluster Operator, a Kubernetes native application developed to deploy and configure StorageOS clusters, and assist with maintenance operations.
  3. Create a Secret defining the StorageOS credentials
  4. Create a StorageOS Cluster (Custom Resource)
  5. Create StorageClasses, PersistentVolumeClaims and Pods

StorageOS v2 and Kubernetes

Step 1 of 6

Install prerequisite (etcd)

StorageOS uses etcd to store its metadata. We will install etcd on node01. Please check https://docs.storageos.com/docs/prerequisites/etcd/ for a production topology.

  1. Add the ip of the Etcd host in the script

    echo export ETCD_HOST=${ETCD_HOST} | cat - install-etcd.sh > temp && mv temp install-etcd.sh

  2. Send the script to node01

    scp -o StrictHostKeyChecking=no install-etcd.sh node01:~/install-etcd.sh

  3. Execute the installation script in the node.

    ssh node01 bash install-etcd.sh

  4. Verify that Etcd is running

    ssh node01 ETCDCTL_API=3 etcdctl --endpoints=http://127.0.0.1:2379 member list

    The output should be something like this:

    77956fff650359b8, started, etcd-172.17.0.18, http://172.17.0.18:2380, http://172.17.0.18:2379, false