Difficulty: Advanced
Estimated Time: 20 minutes

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

In this tutorial, you will install MySQL and configure volumes for high availability.

High Available MySQL

Step 1 of 6

Introduction and Setup Environment

MySQL is a popular SQL open source database for a wide range of popular web-based applications. In this tutorial, we'll look at how to configure it with StorageOS for high availability and failover.

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.

Verify that you have a healthy installation with three nodes:

export STORAGEOS_ENDPOINTS="http://[[HOST2_IP]]:5705,http://[[HOST3_IP]]:5705,http://[[HOST4_IP]]:5705"

storageos get node

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