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:
- Install etcd as a prerequisite
- Install the StorageOS Cluster Operator, a Kubernetes native application developed to deploy and configure StorageOS clusters, and assist with maintenance operations.
- Create a Secret defining the StorageOS credentials
- Create a StorageOS Cluster (Custom Resource)
- Create StorageClasses, PersistentVolumeClaims and Pods

Steps
StorageOS v2 and Kubernetes
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.
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
Send the script to node01
scp -o StrictHostKeyChecking=no install-etcd.sh node01:~/install-etcd.sh
Execute the installation script in the node.
ssh node01 bash install-etcd.sh
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