Skip to content

Commit f00e9fd

Browse files
committed
Added physicalbackup example
1 parent 0b62f98 commit f00e9fd

File tree

2 files changed

+49
-1
lines changed

2 files changed

+49
-1
lines changed

config/samples/kustomization.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
## Append samples you want in your CSV to this file as resources ##
22
resources:
3-
- mariadboperator.yaml
43
- backup.yaml
54
- connection.yaml
65
- database.yaml
76
- grant.yaml
87
- mariadb.yaml
8+
- mariadboperator.yaml
99
- maxscale.yaml
10+
- physicalbackup.yaml
1011
- restore.yaml
1112
- sqljob.yaml
1213
- user.yaml

config/samples/physicalbackup.yaml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
apiVersion: k8s.mariadb.com/v1alpha1
2+
kind: PhysicalBackup
3+
metadata:
4+
name: physicalbackup
5+
spec:
6+
mariaDbRef:
7+
name: mariadb
8+
schedule:
9+
cron: "*/1 * * * *"
10+
suspend: false
11+
immediate: true
12+
compression: bzip2
13+
maxRetention: 720h # 30 days
14+
storage:
15+
s3:
16+
bucket: physicalbackups
17+
prefix: mariadb
18+
endpoint: minio.minio.svc.cluster.local:9000
19+
region: us-east-1
20+
accessKeyIdSecretKeyRef:
21+
name: minio
22+
key: access-key-id
23+
secretAccessKeySecretKeyRef:
24+
name: minio
25+
key: secret-access-key
26+
tls:
27+
enabled: true
28+
caSecretKeyRef:
29+
name: minio-ca
30+
key: ca.crt
31+
stagingStorage:
32+
persistentVolumeClaim:
33+
resources:
34+
requests:
35+
storage: 1Gi
36+
accessModes:
37+
- ReadWriteOnce
38+
timeout: 1h
39+
podAffinity: true
40+
serviceAccountName: backup
41+
resources:
42+
requests:
43+
cpu: 100m
44+
memory: 128Mi
45+
limits:
46+
cpu: 300m
47+
memory: 512Mi

0 commit comments

Comments
 (0)