If you want to learn more about how to utilize storage in Kubernetes, here are some resources that you might find useful:
- Kubernetes Helm Charts include many configuration examples for well-known datastores that make extensive use of persistent volumes: https://github.com/helm/charts
- The Kubernetes documentation has detailed and extensive information about using storage in Kubernetes: https://kubernetes.io/docs/concepts/storage/
- The Kubernetes EFS provisioner provides an add-on provisioner that can be deployed to provision volumes backed by AWS Elastic File System (EFS). This can be a useful tool if you want multiple pods to be able to read and write from the same volume:
https://github.com/kubernetes-incubator/external-storage/tree/master/aws/efs