- We are going to use EBS CSI Driver and use EBS Volumes for persistence storage to MySQL Database
- Install EBS CSI Driver
- Create MySQL Database Deployment & ClusterIP Service
- Create User Management Microservice Deployment & NodePort Service
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 |
- 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