forked from openshift-labs/lab-mysql-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mysql-cluster.yaml
79 lines (79 loc) · 1.85 KB
/
mysql-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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
apiVersion: "pxc.percona.com/v1alpha1"
kind: "PerconaXtraDBCluster"
metadata:
name: "cluster1"
finalizers:
- delete-pxc-pods-in-order
spec:
secretsName: my-cluster-secrets
pxc:
size: 3
allowUnsafeConfigurations: false
image: percona/percona-xtradb-cluster-operator:0.3.0-pxc
resources:
requests:
memory: 1G
cpu: 600m
# limits:
# memory: 1G
# cpu: "1"
affinity:
antiAffinityTopologyKey: "none"
podDisruptionBudget:
maxUnavailable: 1
volumeSpec:
persistentVolumeClaim:
resources:
requests:
storage: 6Gi
proxysql:
enabled: true
size: 1
image: percona/percona-xtradb-cluster-operator:0.3.0-proxysql
resources:
requests:
memory: 1G
cpu: 600m
# limits:
# memory: 1G
# cpu: 700m
affinity:
antiAffinityTopologyKey: "none"
volumeSpec:
persistentVolumeClaim:
resources:
requests:
storage: 2Gi
podDisruptionBudget:
maxUnavailable: 1
pmm:
enabled: false
image: perconalab/pmm-client:1.17.1
serverHost: monitoring-service
serverUser: pmm
backup:
image: percona/percona-xtradb-cluster-operator:0.3.0-backup
storages:
s3-us-west:
type: s3
s3:
bucket: S3-BACKUP-BUCKET-NAME-HERE
credentialsSecret: my-cluster-name-backup-s3
region: us-west-2
fs-pvc:
type: filesystem
volume:
persistentVolumeClaim:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 6Gi
schedule:
- name: "sat-night-backup"
schedule: "0 0 * * 6"
keep: 3
storageName: s3-us-west
- name: "daily-backup"
schedule: "0 0 * * *"
keep: 5
storageName: fs-pvc