k8s/infrastructure/databases/mariadb-operator/cluster/mariadb.yaml

37 lines
605 B
YAML
Raw Normal View History

apiVersion: k8s.mariadb.com/v1alpha1
kind: MariaDB
metadata:
name: mariadb
2026-04-10 08:02:13 +00:00
namespace: mariadb-operator-system
spec:
replicas: 3
2026-04-10 08:07:55 +00:00
replication:
enabled: true
2026-04-10 08:09:18 +00:00
# primary:
#automaticFailover: true
2026-04-10 08:06:20 +00:00
rootPasswordSecretKeyRef:
2026-04-10 08:15:03 +00:00
name: mariadb-secrets
key: password
storage:
size: 20Gi
# 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