/
example-cluster.yaml
45 lines (37 loc) · 1.01 KB
/
example-cluster.yaml
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
37
38
39
40
41
42
43
44
45
apiVersion: mysql.presslabs.org/v1alpha1
kind: MysqlCluster
metadata:
name: foo
spec:
replicas: 1
secretName: the-secret
# mysqlVersion: 5.7
# initBucketUri: gs://bucket_name/backup.xtrabackup.gz
# initBucketSecretName:
## PodDisruptionBudget
# minAvailable: 1
## For recurrent backups set backupSchedule with a cronjob expression
# backupSchedule:
# backupUri: s3://bucket_name/
# backupSecretName:
# backupScheduleJobsHistoryLimit:
## Configs that will be added to my.cnf for cluster
# mysqlConf:
# innodb-buffer-size: 128M
## Specify additional pod specification
# podSpec:
# resources:
# requests:
# memory: 1G
# cpu: 200m
## Specify additional volume specification
# volumeSpec:
# accessModes: [ "ReadWriteOnce" ]
# resources:
# requests:
# storage: 1Gi
## Specify service objectives
## If thoses SLO are not fulfilled by cluster node then that node is
## removed from scheme
# targetSLO:
# maxSlaveLatency: 10s