Running a Galera Cluster in Kubernetes
Kubernetes is an open-source system for managing containerized applications across multiple hosts in a cluster. Kubernetes provides mechanisms for application deployment, scheduling, updating, maintenance, and scaling. Kubernetes has the concept of pods— one or more cooperative containers running on a given host. For running Galera, the need is to run each cluster node on a different host for good distribution, and to do so, a single-container pod is created for each node. Additionally, there needs to be a way to proxy a MySQL client connection to the cluster for application connectivity and failover. This talk will show how well Kubernetes is suited for running MySQL and specifically Galera. It will also show in addition to Kubernetes proxy, it’s also possible to run an HA Proxy service to connect to the Galera cluster. This talk will also cover how this cluster is built on top of Debian using Ansible. A demonstration of building and using the cluster will be given. * recently contributed applicaiton by speaker: https://github.com/kubernetes/kubernetes/tree/master/examples/mysql-galera
Senior Systems Engineer, Hewlett Packard
Patrick Galbraith is a principal engineer at HP in the Advanced Technology Group. He is the author or two books: “Developing Web Applications with Apache, MySQL, memcached, and Perl” (Wiley) “Expert PHP and MySQL” (Wiley) In his “spare time”, he also maintains DBD::mysql, DBD::drizzle, FederatedX storage engine and the Memcached Functions for MySQL as well as tinkering with various other OpenSource and OpenStack projects. Patrick lives up in the sticks of New Hampshire with his wife Ruth and son Kiran, daughter Sara, lots of trees and rocks, as well as his Kubota tractor.