Skip to main content

Setting up Scalable Storage in EKS

Objective

This lab shows you how to setup and configure a data storage mechanism on your cluster.

Prerequisites

Initial Setup

Navigate to the root directory of the python-fastapi-demo-docker project where your environment variables are sourced:

cd ~/environment/python-fastapi-demo-docker

1. Creating StorageClass

StorageClass is used for dynamic provisioning of PersistentVolumes to fulfill PersistentVolumeClaims (PVCs). Run the following command from the python-fastapi-demo-docker project directory to create the StorageClass:

kubectl apply -f eks/sc-automode.yaml

The expected output should look like this:

storageclass.storage.k8s.io/ebs-sc created