apiVersion: velero.io/v1
kind: Backup
metadata:
annotations:
lca.openshift.io/apply-label: "apiextensions.k8s.io/v1/customresourcedefinitions/test.example.com,security.openshift.io/v1/securitycontextconstraints/test,rbac.authorization.k8s.io/v1/clusterroles/test-role,rbac.authorization.k8s.io/v1/clusterrolebindings/system:openshift:scc:test" (1)
name: backup-app-cluster-resources
labels:
velero.io/storage-location: default
namespace: openshift-adp
spec:
includedClusterScopedResources:
- customresourcedefinitions
- securitycontextconstraints
- clusterrolebindings
- clusterroles
excludedClusterScopedResources:
- Namespace
---
apiVersion: velero.io/v1
kind: Restore
metadata:
name: test-app-cluster-resources
namespace: openshift-adp
labels:
velero.io/storage-location: default
annotations:
lca.openshift.io/apply-wave: "3" (2)
spec:
backupName:
backup-app-cluster-resources
-
Replace the example resource name with your actual resources.
-
The
lca.openshift.io/apply-wave
value must be higher than the value in the platformRestore
CRs and lower than the value in the application namespace-scopedRestore
CR.