You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As a disaster recovery team, it is crucial to back up application workload resources using label selectors. Our scenario involves deploying multiple application workloads within the same namespace. The main challenge arises from the risk of resource conflicts due to overlapping labels, where a single resource might be selected by multiple application label selectors for backup.
This behavior needs to be avoided because, during relocation of an application workload, the original resource is removed from the primary cluster. If other application workloads depend on the same resource, their functionality could be disrupted, potentially leading to crashes.
For instance:
ConfigMap: C1(key1: V1), C2(key1: V1, key2: V2)
Creating backup1 with label key1 = V1
Creating backup2 with label key2 = V2
In this case, C2 is selected by both backups, leading to a conflict.
We must implement a mechanism to detect such conflicts and alert users accordingly.
Note:
We are using --include-resources, exclude is too much when there are more workloads under the same namespace.
Describe the solution you'd like
Is it possible to provide any Velero API to provide information about the conflicts?
(Or) A new API that accepts the backup name as input and returns a list of resource types and resource names in the response would be highly beneficial.
(Or) Is possible to access the Velero backup using any API? so we can access the collected resources and check for the conflicts from our plugin?
Or any other suggested way?
Anything else you would like to add:
Environment:
oadp-velero-rhel 1.4.1
The text was updated successfully, but these errors were encountered:
Could you give more information about why resources selected by multiple label selectors are an issue?
If a k8s resource is selected by multiple labels, IMO, it's included in multiple backups in your scenario, and it can be restored by all of the backups.
It's not an obvious conflict scenario in data restores per my understanding.
@kaovilai "detect during Execute if an item was already in backupA"
That would be pretty complicated. The plugin would need to download the resource list from backupA and parse it -- it would also mean that reordering backupA and backupB would change what was in each.
Describe the problem/challenge you have
As a disaster recovery team, it is crucial to back up application workload resources using label selectors. Our scenario involves deploying multiple application workloads within the same namespace. The main challenge arises from the risk of resource conflicts due to overlapping labels, where a single resource might be selected by multiple application label selectors for backup.
This behavior needs to be avoided because, during relocation of an application workload, the original resource is removed from the primary cluster. If other application workloads depend on the same resource, their functionality could be disrupted, potentially leading to crashes.
For instance:
ConfigMap: C1(key1: V1), C2(key1: V1, key2: V2)
Creating
backup1
with labelkey1 = V1
Creating
backup2
with labelkey2 = V2
In this case, C2 is selected by both backups, leading to a conflict.
We must implement a mechanism to detect such conflicts and alert users accordingly.
Note:
We are using --include-resources, exclude is too much when there are more workloads under the same namespace.
Describe the solution you'd like
Or any other suggested way?
Anything else you would like to add:
Environment:
oadp-velero-rhel 1.4.1
The text was updated successfully, but these errors were encountered: