File tree 1 file changed +72
-0
lines changed
applications/storagebox/kots
1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : velero.io/v1
2
+ kind : Restore
3
+ metadata :
4
+ name : storagebox-restore
5
+ namespace : velero
6
+ spec :
7
+ backupName : storagebox-backup
8
+ includedNamespaces :
9
+ - ' *' # Include all namespaces to restore the complete application
10
+
11
+ # Restore all resources except storage classes which may already exist
12
+ includedResources :
13
+ - ' *'
14
+ orLabelSelectors :
15
+ - matchExpressions :
16
+ # Exclude Replicated resources
17
+ - { key: kots.io/kotsadm, operator: NotIn, values: ["true"] }
18
+ # Restore PVs from snapshots
19
+ restorePVs : true
20
+
21
+ # Preserve the original node ports for services
22
+ preserveNodePorts : true
23
+
24
+ # Handle existing resources
25
+ existingResourcePolicy : none
26
+
27
+ # Include cluster-scoped resources
28
+ includeClusterResources : true
29
+
30
+ # # Configure restore hooks for stateful components
31
+ # hooks:
32
+ # resources:
33
+ # # Cassandra restore hook
34
+ # - name: cassandra-restore-hook
35
+ # includedResources:
36
+ # - pods
37
+ # labelSelector:
38
+ # matchLabels:
39
+ # app.kubernetes.io/name: cassandra
40
+ # postHooks:
41
+ # - exec:
42
+ # container: cassandra
43
+ # command:
44
+ # - /bin/sh
45
+ # - -c
46
+ # - "nodetool refresh"
47
+ # waitTimeout: 5m
48
+ # execTimeout: 2m
49
+ # onError: Continue
50
+
51
+ # # PostgreSQL restore hook
52
+ # - name: postgres-restore-hook
53
+ # includedResources:
54
+ # - pods
55
+ # labelSelector:
56
+ # matchLabels:
57
+ # app.kubernetes.io/name: postgres
58
+ # postHooks:
59
+ # - exec:
60
+ # container: postgres
61
+ # command:
62
+ # - /bin/sh
63
+ # - -c
64
+ # - "pg_isready"
65
+ # waitTimeout: 5m
66
+ # execTimeout: 1m
67
+ # onError: Continue
68
+
69
+ # Configure parallel file downloads for faster restore
70
+ uploaderConfig :
71
+ parallelFilesDownload : 10
72
+ writeSparseFiles : true
You can’t perform that action at this time.
0 commit comments