kubeasz/manifests/mysql-cluster/mysql-configmap.yaml

18 lines
387 B
YAML
Raw Normal View History

# https://kubernetes.io/docs/tasks/run-application/run-replicated-stateful-application/
2019-01-30 21:28:37 +08:00
apiVersion: v1
kind: ConfigMap
metadata:
name: mysql
labels:
app: mysql
app.kubernetes.io/name: mysql
2019-01-30 21:28:37 +08:00
data:
primary.cnf: |
# Apply this config only on the primary.
2019-01-30 21:28:37 +08:00
[mysqld]
log-bin
replica.cnf: |
# Apply this config only on replicas.
2019-01-30 21:28:37 +08:00
[mysqld]
super-read-only