forked from radondb/radondb-mysql-kubernetes
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request radondb#444 from radondb/v2.2.0
Support MySQL 8.0
- Loading branch information
Showing
23 changed files
with
435 additions
and
199 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
apiVersion: mysql.radondb.com/v1alpha1 | ||
kind: MysqlCluster | ||
metadata: | ||
name: sample | ||
spec: | ||
replicas: 3 | ||
mysqlVersion: "8.0" | ||
|
||
# the backupSecretName specify the secret file name which store S3 information, | ||
# if you want S3 backup or restore, please create backup_secret.yaml, uncomment below and fill secret name: | ||
# backupSecretName: | ||
|
||
# if you want create mysqlcluster from S3, uncomment and fill the directory in S3 bucket below: | ||
# restoreFrom: | ||
|
||
mysqlOpts: | ||
rootPassword: "RadonDB@123" | ||
rootHost: localhost | ||
user: radondb_usr | ||
password: RadonDB@123 | ||
database: radondb | ||
## tokudb is not supported in mysql8. | ||
# initTokuDB: false | ||
|
||
# A simple map between string and string. | ||
# Such as: | ||
# mysqlConf: | ||
# expire_logs_days: "7" | ||
mysqlConf: {} | ||
|
||
resources: | ||
requests: | ||
cpu: 100m | ||
memory: 256Mi | ||
limits: | ||
cpu: 500m | ||
memory: 1Gi | ||
|
||
xenonOpts: | ||
image: radondb/xenon:1.1.5-alpha | ||
admitDefeatHearbeatCount: 5 | ||
electionTimeout: 10000 | ||
|
||
resources: | ||
requests: | ||
cpu: 50m | ||
memory: 128Mi | ||
limits: | ||
cpu: 100m | ||
memory: 256Mi | ||
|
||
metricsOpts: | ||
enabled: false | ||
image: prom/mysqld-exporter:v0.12.1 | ||
|
||
resources: | ||
requests: | ||
cpu: 10m | ||
memory: 32Mi | ||
limits: | ||
cpu: 100m | ||
memory: 128Mi | ||
|
||
podPolicy: | ||
imagePullPolicy: IfNotPresent | ||
sidecarImage: radondb/mysql80-sidecar:v2.2.0 | ||
busyboxImage: busybox:1.32 | ||
|
||
slowLogTail: false | ||
auditLogTail: false | ||
|
||
labels: {} | ||
annotations: {} | ||
affinity: {} | ||
priorityClassName: "" | ||
tolerations: [] | ||
schedulerName: "" | ||
# extraResources defines quotas for containers other than mysql or xenon. | ||
extraResources: | ||
requests: | ||
cpu: 10m | ||
memory: 32Mi | ||
|
||
persistence: | ||
enabled: true | ||
accessModes: | ||
- ReadWriteOnce | ||
#storageClass: "" | ||
size: 20Gi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# Deploy | ||
use sample `config/samples/mysql_v1alpha1_mysqlcluster_mysql8.yaml` , modify the `spec.podPolicy.sidecarImage` to MySQL8 version sidecar image. | ||
install step | ||
[deploy reference](deploy_radondb-mysql_operator_on_kubesphere.md) | ||
# How to build sidecar images? | ||
After you had installed docker , use command: | ||
``` | ||
make mysql8-sidecar | ||
``` | ||
it will build mysql8 sidecar image.Then `docker push xxx` to push to docker hub. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.