Amazon Elastic Block Store (Amazon EBS) provides persistent block-level storage volumes for Amazon EC2 instances used in both kops-created Kubernetes clusters and Amazon EKS clusters in AWS. In this section, we will create storage classes for your applications in Kubernetes running in AWS. You will learn how to create a StorageClass resource in Kubernetes, you will learn about the parameters available with the variation in performance of EBS volume types and also use the new Container Storage Interface (CSI) to consume EBS volumes.
Getting ready
Clone the k8sdevopscookbook/src repository to your workstation in order to be able to use manifest files under the chapter5 directory:
$ git clone https://github.com/k8sdevopscookbook/src.git
$ cd chapter5
Make sure that you have a Kubernetes cluster ready and kubectl configured to manage the cluster resources.
How to do it…
This section is sub-divided further into the following subsections to facilitate...