forked from mariadb-operator/mariadb-operator
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmariadb_v1alpha1_mariadb_galera.yaml
More file actions
80 lines (67 loc) · 1.49 KB
/
mariadb_v1alpha1_mariadb_galera.yaml
File metadata and controls
80 lines (67 loc) · 1.49 KB
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
80
apiVersion: mariadb.mmontes.io/v1alpha1
kind: MariaDB
metadata:
name: mariadb-galera
spec:
rootPasswordSecretKeyRef:
name: mariadb
key: root-password
database: mariadb
username: mariadb
passwordSecretKeyRef:
name: mariadb
key: password
connection:
secretName: mariadb-conn
secretTemplate:
key: dsn
image:
repository: mariadb
tag: "10.11.3"
pullPolicy: IfNotPresent
port: 3306
replicas: 3
galera:
replicaThreads: 1
initContainerImage:
repository: alpine
tag: "3.18.0"
pullPolicy: IfNotPresent
configVolumeClaimTemplate:
resources:
requests:
storage: 10Mi
storageClassName: standard
accessModes:
- ReadWriteOnce
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: "kubernetes.io/hostname"
tolerations:
- key: "mariadb.mmontes.io/ha"
operator: "Exists"
effect: "NoSchedule"
podDisruptionBudget:
minAvailable: "66%"
myCnf: |
[mysqld]
bind-address=0.0.0.0
default_storage_engine=InnoDB
binlog_format=row
innodb_autoinc_lock_mode=2
max_allowed_packet=256M
volumeClaimTemplate:
resources:
requests:
storage: 100Mi
storageClassName: standard
accessModes:
- ReadWriteOnce
service:
type: LoadBalancer
annotations:
metallb.universe.tf/loadBalancerIPs: 172.18.0.150
# bootstrapFrom:
# backupRef:
# name: backup-scheduled