1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
$ cat values-test.yaml
## 配置文件中定义 storageClass: "",会使用集群配置的 openebs 提供的 storageClass,
## 使用此文档部署,需要自行解决 storageClass 问题 (ceph, nfs, 公有云提供的 nfs)
service:
## Kubernetes service type
# nodePort:
type: ClusterIP
port: 3306
root:
## MySQL admin password
## ref: https://github.com/bitnami/bitnami-docker-mysql#setting-the-root-password-on-first-run
##
password: root123 # 设置 MySQL root密码
replication:
## Enable replication. This enables the creation of replicas of MySQL. If false, only a
## master deployment would be created
enabled: true
user: replicator
password: replicator # 设置 MySQL 主从同步用户密码
master:
persistence:
storageClass: "openebs-jiva-default" # 设置 storageClass
slave:
replicas: 2
persistence:
storageClass: "openebs-jiva-default" # 设置 storageClass
|