Files
mariadb-operator/examples/manifests/mariadb_galera_from_volumesnapshot.yaml

50 lines
868 B
YAML

apiVersion: k8s.mariadb.com/v1alpha1
kind: MariaDB
metadata:
name: mariadb-galera
spec:
rootPasswordSecretKeyRef:
name: mariadb
key: root-password
storage:
size: 1Gi
storageClassName: csi-hostpath-sc
replicas: 3
galera:
enabled: true
bootstrapFrom:
volumeSnapshotRef:
name: physicalbackup-20251013171000
service:
type: LoadBalancer
metadata:
annotations:
metallb.universe.tf/loadBalancerIPs: 172.18.0.150
primaryService:
type: LoadBalancer
metadata:
annotations:
metallb.universe.tf/loadBalancerIPs: 172.18.0.160
secondaryService:
type: LoadBalancer
metadata:
annotations:
metallb.universe.tf/loadBalancerIPs: 172.18.0.161
metrics:
enabled: true
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
memory: 1Gi