Skip to content

streema/kubernetes-mysql

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

kubernetes-mysql

Build an EBS volume in AWS

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

Create k8s secret

create password file

echo This-is-a-password > password

create k8s secret for root password

kubectl -n mysql create secret generic db-password --from-file=./password

Create mysql deployment

kubectl create -f mysql.yaml

Make sure mysql pod is running

kubectl -n mysql get pod

Create mysql service

kubectl create -f mysql-service.yaml

Get the ELB IP address for the mysql service

kubectl -n mysql get service mysql

About

Basic AWS EBS mysql pod and service on kubernetes.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published