Difficulty: beginner
Estimated Time: 5-15 minutes

This is a single node installation of StorageOS with OpenShift 3.7. From here you can see how pods and deployments interact with StorageOS.

Don’t stop now! The next scenario will only take about 10 minutes to complete.

StorageOS and OpenShift 3.7

Step 1 of 4

Install StorageOS

Prepare host

Required kernel modules will be enabled by running the following ./enable-lio.sh

chmod +x enable-lio.sh && ./enable-lio.sh

Install StorageOS

(Until openshift version 3.9, feature gates such as mount propagation are not supported. Because of that, the installation of StorageOS is done by container installation rather than DaemonSet)

docker run -d --name storageos \ -e HOSTNAME \ -e ADVERTISE_IP=[[HOST_IP]] \ -e JOIN=[[HOST_IP]] \ --pid=host \ --network=host \ --privileged \ --cap-add SYS_ADMIN \ --device /dev/fuse \ -v /sys:/sys \ -v /var/lib/storageos:/var/lib/storageos:rshared \ -v /run/docker/plugins:/run/docker/plugins \ storageos/node:1.0.0-rc2 server

Create StorageClass

First, it is required to create a secret that sets the api endpoint of StorageOS

APIADDRESS=$(echo -n "tcp://" | base64); sed -i "s/REPLACE/$APIADDRESS/g" secret.yaml

oc --as system:admin -n default create -f secret.yaml

Create fast StorageClass:

oc --as system:admin create -f storageclass.yaml