0ca1a7942e
This is a major refactor of the mariadb chart. A few things are accomplished: * The chart template layout is updated to match our keystone chart, providing a more structure to the chart. * The chart was updated to leverage StatefulSets, which requires Kubernetes 1.5, and helm 2.1.0. * The bootstrapping process was completely overhauled to support the unique constraints of statefulsets, namely that they come up one by one, needing the previous to be in a ready state before the next is provisioned. * The references to {{ .IP }} we removed and replaced with POD_IP environmental passing and address binding was fixed in several places for wsrep functionality. This may explain several oddities with the previous setup causing mysterious and intermittent database consistency issues.
16 lines
505 B
YAML
16 lines
505 B
YAML
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: mariadb-bin
|
|
data:
|
|
start.sh: |
|
|
{{ tuple "bin/_start.sh.tpl" . | include "template" | indent 4 }}
|
|
peer-finder.py: |
|
|
{{ tuple "bin/_peer-finder.py.tpl" . | include "template" | indent 4 }}
|
|
readiness.py: |
|
|
{{ tuple "bin/_readiness.py.tpl" . | include "template" | indent 4 }}
|
|
bootstrap-db.sh: |
|
|
{{ tuple "bin/_bootstrap-db.sh.tpl" . | include "template" | indent 4 }}
|
|
seed.sh: |
|
|
{{ tuple "bin/_seed.sh.tpl" . | include "template" | indent 4 }}
|