From 80c46fe13aed3e6899a6c981b2c720fab8cee2ec Mon Sep 17 00:00:00 2001
From: David Hoese <david.hoese@ssec.wisc.edu>
Date: Wed, 26 Jan 2022 11:39:18 -0600
Subject: [PATCH] Add sc1 storageclass for AWS

---
 admin/AWS_README.md          | 22 ++++++++++++++++++++++
 ci_aws/sc1-storageclass.yaml |  8 ++++++++
 2 files changed, 30 insertions(+)
 create mode 100644 ci_aws/sc1-storageclass.yaml

diff --git a/admin/AWS_README.md b/admin/AWS_README.md
index 3f15eca..b08aedf 100644
--- a/admin/AWS_README.md
+++ b/admin/AWS_README.md
@@ -88,6 +88,28 @@ You can update your kubectl to easily access the AWS cluster by running:
 aws eks update-kubeconfig --region $AWS_DEFAULT_REGION --name <aws cluster name>
 ```
 
+## Additional AWS EBS Storage Classes
+
+By default, at the time of writing, AWS only provides one StorageClass on a new
+cluster, `gp2`. This is an SSD-based and relatively expensive block storage. To
+add additional storage classes for other EBS options we have to define a new
+StorageClass YAML and install it on the cluster. An example is shown below where
+a YAML file named `sc1-storageclass.yaml` could contain:
+
+```yaml
+kind: StorageClass
+apiVersion: storage.k8s.io/v1
+metadata:
+  name: sc1
+provisioner: kubernetes.io/aws-ebs
+parameters:
+  type: sc1
+  fsType: ext4
+```
+
+Then run `kubectl apply -f sc1-storageclass.yaml` to install it. Components
+can then use 'sc1' as their storage class.
+
 ## Block Storage
 
 By default your AWS cluster likely has a single storage class called `gp2`.
diff --git a/ci_aws/sc1-storageclass.yaml b/ci_aws/sc1-storageclass.yaml
new file mode 100644
index 0000000..0148973
--- /dev/null
+++ b/ci_aws/sc1-storageclass.yaml
@@ -0,0 +1,8 @@
+kind: StorageClass
+apiVersion: storage.k8s.io/v1
+metadata:
+  name: sc1
+provisioner: kubernetes.io/aws-ebs
+parameters:
+  type: sc1
+  fsType: ext4
\ No newline at end of file
-- 
GitLab