1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/snippets/ibu-PlatformBackupRestoreWithIBGU.adoc
2024-09-24 21:55:10 +00:00

39 lines
1.9 KiB
Plaintext

[source,yaml]
----
apiVersion: velero.io/v1
kind: Backup
metadata:
name: acm-klusterlet
annotations:
lca.openshift.io/apply-label: "apps/v1/deployments/open-cluster-management-agent/klusterlet,v1/secrets/open-cluster-management-agent/bootstrap-hub-kubeconfig,rbac.authorization.k8s.io/v1/clusterroles/klusterlet,v1/serviceaccounts/open-cluster-management-agent/klusterlet,scheduling.k8s.io/v1/priorityclasses/klusterlet-critical,rbac.authorization.k8s.io/v1/clusterroles/open-cluster-management:klusterlet-work:ibu-role,rbac.authorization.k8s.io/v1/clusterroles/open-cluster-management:klusterlet-admin-aggregate-clusterrole,rbac.authorization.k8s.io/v1/clusterrolebindings/klusterlet,operator.open-cluster-management.io/v1/klusterlets/klusterlet,apiextensions.k8s.io/v1/customresourcedefinitions/klusterlets.operator.open-cluster-management.io,v1/secrets/open-cluster-management-agent/open-cluster-management-image-pull-credentials" <1>
labels:
velero.io/storage-location: default
namespace: openshift-adp
spec:
includedNamespaces:
- open-cluster-management-agent
includedClusterScopedResources:
- klusterlets.operator.open-cluster-management.io
- clusterroles.rbac.authorization.k8s.io
- clusterrolebindings.rbac.authorization.k8s.io
- priorityclasses.scheduling.k8s.io
includedNamespaceScopedResources:
- deployments
- serviceaccounts
- secrets
excludedNamespaceScopedResources: []
---
apiVersion: velero.io/v1
kind: Restore
metadata:
name: acm-klusterlet
namespace: openshift-adp
labels:
velero.io/storage-location: default
annotations:
lca.openshift.io/apply-wave: "1"
spec:
backupName:
acm-klusterlet
----
<1> If your `multiclusterHub` CR does not have `.spec.imagePullSecret` defined and the secret does not exist on the `open-cluster-management-agent` namespace in your hub cluster, remove `v1/secrets/open-cluster-management-agent/open-cluster-management-image-pull-credentials`.