forked from k8up-io/k8up
-
Notifications
You must be signed in to change notification settings - Fork 0
/
k8up_v1_restore.yaml
78 lines (77 loc) · 1.54 KB
/
k8up_v1_restore.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
apiVersion: k8up.io/v1
kind: Restore
metadata:
name: restore-disk
spec:
restoreMethod:
folder:
claimName: restore
backend:
repoPasswordSecretRef:
name: backup-repo
key: password
s3:
endpoint: http://minio.minio:9000
bucket: k8up
accessKeyIDSecretRef:
name: backup-credentials
key: username
secretAccessKeySecretRef:
name: backup-credentials
key: password
---
apiVersion: k8up.io/v1
kind: Restore
metadata:
name: restore-s3
spec:
restoreMethod:
s3:
endpoint: http://minio.minio:9000
bucket: restoremini
accessKeyIDSecretRef:
name: backup-credentials
key: username
secretAccessKeySecretRef:
name: backup-credentials
key: password
backend:
repoPasswordSecretRef:
name: backup-repo
key: password
s3:
endpoint: http://minio.minio:9000
bucket: k8up
accessKeyIDSecretRef:
name: backup-credentials
key: username
secretAccessKeySecretRef:
name: backup-credentials
key: password
---
apiVersion: k8up.io/v1
kind: Restore
metadata:
name: restore-s3-global
spec:
restoreMethod:
s3: {}
backend:
s3: {}
---
# Here we only override the restic password and the bucket from the global
# settings.
apiVersion: k8up.io/v1
kind: Restore
metadata:
name: restore-s3-override
spec:
restoreMethod:
s3:
bucket: k8up-restore
backend:
repoPasswordSecretRef:
key: repopw
name: repopw
s3:
bucket: k8up-namespace