k8s/infrastructure/databases/mariadb-clusters/mariadb.yaml

35 lines
778 B
YAML
Raw Permalink Normal View History

2026-04-22 08:09:19 +00:00
apiVersion: k8s.mariadb.com/v1alpha1
kind: MariaDB
metadata:
name: mariadb
namespace: mariadb-databases
spec:
2026-04-24 23:41:48 +00:00
replicas: 1
2026-04-24 23:43:34 +00:00
#replication:
#enabled: true
2026-04-23 08:32:31 +00:00
# primary:
# automaticFailover: true
2026-04-23 09:09:28 +00:00
myCnf: |
[mariadb]
# Kimai migrations can include zero-date defaults; relax NO_ZERO_DATE / strict handling.
sql_mode=ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
2026-04-22 08:09:19 +00:00
rootPasswordSecretKeyRef:
name: mariadb-secrets
key: password
storage:
2026-04-23 08:25:55 +00:00
size: 20Gi
2026-04-22 08:09:19 +00:00
# Optional but recommended
service:
type: ClusterIP
# Helps with stable operation in GitOps
updateStrategy:
type: ReplicasFirstPrimaryLast
# Basic resource safety
resources:
requests:
cpu: 250m
memory: 512Mi
limits:
cpu: "1"
memory: 1Gi