Deploying Pods with Amazon Storage
A guiding principle in most distributed or cloud-native applications is to limit the state where you can, and so far we have deployed Pods that are stateless, which means that when they are destroyed and recreated, any data they had is lost. In some cases, you might want to share data between containers in the Pod, maintain the state or content between reboots/re-deployments/crashes, or share data between Pods, in which case you need some sort of persistent storage.
This chapter looks at how you can use Elastic Block Storage (EBS) and Elastic File System (EFS) to persist the container state or content across multiple containers, Pods, or deployments. Specifically, we will cover the following key topics:
- Understanding Kubernetes volumes, the Container Storage Interface (CSI) driver, and storage on AWS
- Installing and configuring the AWS CSI drivers in your cluster
- Using EBS volumes with your application
- Using EFS volumes with...