Skip to content

Latest commit

 

History

History
21 lines (13 loc) · 923 Bytes

README.md

File metadata and controls

21 lines (13 loc) · 923 Bytes

K8s MariaDB Galera init container

Docker image of initialization container to initialize MariaDB cluster as Kubernetes StatefulSet.

Based on Alpine Linux. Uses peer-finder.go util from Kibernetes contrib.

Settings

Arguments:

  • -service=mysql - The service name to lookup peers passed to peer-finder.

Environment variables and defaults:

  • POD_NAMESPACE - The namespace.
  • GALERA_CONFIG=/etc/mysql/conf.d/galera.cnf - The location of galera config file.
  • CLUSTER_NAME=mysql - The cluster name.
  • SAFE_TO_BOOTSTRAP - Set to "1" to force cluster recovery from the first node even if some tx can be lost that are commited before all nodes are crashed. Otherwise, cluster refuses to start after all nodes are crashed.