AWS EKS Storage ¶
AWS EBS CSI Driver ¶
- We are going to use EBS CSI Driver and use EBS Volumes for persistence storage to MySQL Database
Topics ¶
- Install EBS CSI Driver
- Create MySQL Database Deployment & ClusterIP Service
- Create User Management Microservice Deployment & NodePort Service
Concepts ¶
Kubernetes Object | YAML File |
---|---|
Storage Class | 01-storage-class.yml |
Persistent Volume Claim | 02-persistent-volume-claim.yml |
Config Map | 03-UserManagement-ConfigMap.yml |
Deployment, Environment Variables, Volumes, VolumeMounts | 04-mysql-deployment.yml |
ClusterIP Service | 05-mysql-clusterip-service.yml |
Deployment, Environment Variables | 06-UserManagementMicroservice-Deployment.yml |
NodePort Service | 07-UserManagement-Service.yml |
AWS EKS - Elastic Kubernetes Service - Masterclass ¶
References: ¶
- Dynamic Volume Provisioning: https://kubernetes.io/docs/concepts/storage/dynamic-provisioning/
- https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/deploy/kubernetes/overlays/stable
- https://docs.aws.amazon.com/eks/latest/userguide/ebs-csi.html
- https://github.com/kubernetes-sigs/aws-ebs-csi-driver
- https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/examples/kubernetes/dynamic-provisioning
- https://github.com/kubernetes-sigs/aws-ebs-csi-driver/tree/master/deploy/kubernetes/overlays/stable
- https://github.com/kubernetes-sigs/aws-ebs-csi-driver
- Legacy: Will be deprecated
- https://kubernetes.io/docs/concepts/storage/storage-classes/#aws-ebs
- https://docs.aws.amazon.com/eks/latest/userguide/storage-classes.html