mirror of
https://github.com/mariadb-operator/mariadb-operator.git
synced 2025-08-15 21:02:38 +00:00
107 lines
2.0 KiB
YAML
107 lines
2.0 KiB
YAML
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: "11.0.2"
|
|
pullPolicy: IfNotPresent
|
|
|
|
port: 3306
|
|
|
|
replicas: 3
|
|
|
|
galera:
|
|
enabled: true
|
|
sst: mariabackup
|
|
replicaThreads: 1
|
|
agent:
|
|
image:
|
|
repository: ghcr.io/mariadb-operator/agent
|
|
tag: "v0.0.2"
|
|
pullPolicy: IfNotPresent
|
|
port: 5555
|
|
kubernetesAuth:
|
|
enabled: true
|
|
authDelegatorRoleName: mariadb-galera-auth
|
|
gracefulShutdownTimeout: 5s
|
|
recovery:
|
|
enabled: true
|
|
clusterHealthyTimeout: 1m
|
|
clusterBootstrapTimeout: 5m
|
|
podRecoveryTimeout: 3m
|
|
podSyncTimeout: 3m
|
|
initContainer:
|
|
image:
|
|
repository: ghcr.io/mariadb-operator/init
|
|
tag: "v0.0.5"
|
|
pullPolicy: IfNotPresent
|
|
volumeClaimTemplate:
|
|
resources:
|
|
requests:
|
|
storage: 50Mi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
|
|
affinity:
|
|
podAntiAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
- topologyKey: "kubernetes.io/hostname"
|
|
|
|
tolerations:
|
|
- key: "mariadb.mmontes.io/ha"
|
|
operator: "Exists"
|
|
effect: "NoSchedule"
|
|
|
|
podDisruptionBudget:
|
|
maxUnavailable: 66%
|
|
|
|
updateStrategy:
|
|
type: RollingUpdate
|
|
|
|
myCnf: |
|
|
[mariadb]
|
|
bind-address=0.0.0.0
|
|
default_storage_engine=InnoDB
|
|
binlog_format=row
|
|
innodb_autoinc_lock_mode=2
|
|
max_allowed_packet=256M
|
|
|
|
resources:
|
|
requests:
|
|
cpu: 300m
|
|
memory: 256Mi
|
|
limits:
|
|
memory: 1Gi
|
|
|
|
volumeClaimTemplate:
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
|
|
service:
|
|
type: LoadBalancer
|
|
annotations:
|
|
metallb.universe.tf/loadBalancerIPs: 172.18.0.150
|
|
|
|
# bootstrapFrom:
|
|
# backupRef:
|
|
# name: backup-scheduled |