[incubator/mysqlha] Allow configuration of MySQL master and slaves from values.yaml (#5948)

* Allow configuration of MySQL master and slaves from values.yaml

* Bump version number

* Update README

* Update Chart.yaml

* Update Chart.yaml
This commit is contained in:
Joram Wilander
2018-07-03 13:23:21 -07:00
committed by k8s-ci-robot
parent 0068002a47
commit dcbf324b89
4 changed files with 22 additions and 15 deletions
+3 -3
View File
@@ -1,5 +1,5 @@
name: mysqlha
version: 0.2.1
version: 0.3.0
appVersion: 5.7.13
description: MySQL cluster with a single master and zero or more slave replicas
keywords:
@@ -9,7 +9,7 @@ keywords:
home: https://www.mysql.com/
icon: https://www.mysql.com/common/logos/logo-mysql-170x115.png
maintainers:
- name: Jason Poon
- name: jpoon
email: jason.poon@microsoft.com
- name: Jon Hoare
- name: jonhoare
email: jon.bitbucket@livewire-uk.co.uk
+4 -2
View File
@@ -43,8 +43,10 @@ The following table lists the configurable parameters of the MySQL chart and the
| `mysqlPassword` | Password for the new user. | Randomly generated |
| `mysqlReplicationUser` | Username for replication user | `repl` |
| `mysqlReplicationPassword` | Password for replication user. | Randomly generated |
| `mysqlDatabase` | Name of the new Database to create | `nil` |
| `persistence.enabled` | Create a volume to store data | true |
| `mysqlDatabase` | Name of the new Database to create | `nil` |
| `configFiles.master.cnf` | Master configuration file | See `values.yaml` |
| `configFiles.slave.cnf` | Slave configuration file | See `values.yaml` |
| `persistence.enabled` | Create a volume to store data | true |
| `persistence.size` | Size of persistent volume claim | 10Gi |
| `persistence.storageClass` | Type of persistent volume claim | `nil` |
| `persistence.accessModes` | Persistent volume access modes | `[ReadWriteOnce]` |
+1 -10
View File
@@ -8,16 +8,7 @@ metadata:
release: "{{ .Release.Name }}"
heritage: "{{ .Release.Service }}"
data:
master.cnf: |
# Apply this config only on the master.
[mysqld]
log-bin
skip_name_resolve
slave.cnf: |
# Apply this config only on slaves.
[mysqld]
super-read-only
skip_name_resolve
{{ toYaml .Values.mysqlha.configFiles | indent 2 }}
server-id.cnf: |
[mysqld]
server-id=@@SERVER_ID@@
+14
View File
@@ -29,6 +29,20 @@ mysqlha:
## Create database with name and grant all permissions to user on startup, if needed
# mysqlDatabase:
## Configuration files for the master and slaves
##
configFiles:
master.cnf: |
# Apply this config only on the master.
[mysqld]
log-bin
skip_name_resolve
slave.cnf: |
# Apply this config only on slaves.
[mysqld]
super-read-only
skip_name_resolve
## Enable persistence using Persistent Volume Claims
## ref: http://kubernetes.io/docs/user-guide/persistent-volumes/
##