run multiple mysql pods in kubernetes

11/4/2015

I would like to create a kubernetes cluster to deploy mysql databases, like a mysql farm. These databases should be accessible from internet.

All databases on the same node will have the port 3306 listening, the kube-proxy or the DNS addon could redirect each request to an specific container?

I would like to create url's like myDB1.example.com:3306, myDB2.example.com:3306 that goes to an specific container.

I'm deploying this environment in AWS.

It's possible to create this cluster?

-- arkanoid
kubernetes
mysql

1 Answer

11/4/2015

Yes. Starting point would be a (customized) MySQL Docker image with EBS backed volumes and you'd be using it in an Replication Controller to handle failover. On top of that you would have a Service that provides a stable and routable interface to the outside world. Optionally, put an AWS Elastic Load Balancer in front of it.

-- Michael Hausenblas
Source: StackOverflow