Difficulty: Beginner
Estimated Time: 10 minutes

This sandbox environment is a fully configured 3 node Kubernetes cluster with StorageOS already installed.

In this tutorial, you will create a pod provisioned with StorageOS and compare it to a pod with ephemeral storage.

Persistent vs Ephemeral Storage

Step 1 of 4

Introduction and Setup Environment

First verify StorageOS Installation.

kubectl -n kube-system get pods -lapp=storageos -w

The above command watches the pods created by the StorageOSCluster resource. Note that pods typically take approximately 40 seconds to enter the Running Phase. Press Ctrl+C to continue once the pods are up.

We can use a pod to access the CLI using kubectl exec:

kubectl -n kube-system run \ --image storageos/cli:v2.1.0 \ --restart=Never \ --env STORAGEOS_ENDPOINTS=[[HOST2_IP]]:5705 \ --env STORAGEOS_USERNAME=storageos \ --env STORAGEOS_PASSWORD=storageos \ --command cli \ -- /bin/sh -c "while true; do sleep 999999; done"

Wait for the CLI pod to enter the Running state and press Ctrl+C to continue once the pod is running.

kubectl -n kube-system get pods -l run=cli -w

Verify that you have a healthy installation with three nodes:

kubectl exec -ti cli -n kube-system -- storageos get node

We are going to use the default StorageClass that was created when StorageOS was installed, called fast.

The fast StorageClass is backed by the storageos provisioner:

kubectl describe storageclass fast