mirror of https://github.com/easzlab/kubeasz.git
18 lines
387 B
YAML
18 lines
387 B
YAML
# https://kubernetes.io/docs/tasks/run-application/run-replicated-stateful-application/
|
|
apiVersion: v1
|
|
kind: ConfigMap
|
|
metadata:
|
|
name: mysql
|
|
labels:
|
|
app: mysql
|
|
app.kubernetes.io/name: mysql
|
|
data:
|
|
primary.cnf: |
|
|
# Apply this config only on the primary.
|
|
[mysqld]
|
|
log-bin
|
|
replica.cnf: |
|
|
# Apply this config only on replicas.
|
|
[mysqld]
|
|
super-read-only
|