aws ec2 create-volume --availability-zone us-west-2a --size 30 --volume-type gp2
- Insert the volume id of your newly created ebs volume into your mysql.yaml
echo This-is-a-password > password
kubectl -n mysql create secret generic db-password --from-file=./password
kubectl create -f mysql.yaml
Make sure mysql pod is running
kubectl -n mysql get pod
kubectl create -f mysql-service.yaml
Get the ELB IP address for the mysql service
kubectl -n mysql get service mysql