karmada
karmada copied to clipboard
If there are any plans for WorkloadRebalancer to support resourceSelectors, similar to what is supported in PropagationPolicy
Please provide an in-depth description of the question you have:
The current WorkloadRebalancer (#4698) provides a great entry point for rescheduling workloads, allowing the use of .spec.workloads to specify the resources for rescheduling and supporting array-based scheduling. I would like to ask if there are any plans for WorkloadRebalancer to support resourceSelectors, similar to what is supported in PropagationPolicy?
For example:
apiVersion: apps.karmada.io/v1alpha1
kind: WorkloadRebalancer
metadata:
name: demo
spec:
workloads:
- apiVersion: v1
kind: ConfigMap
labelSelector:
matchLabels:
atms-app/cluster-policy: karmada
atms-app/creator: ATMS
atms-app/teamid: "1005"
This would allow me to reschedule resources for the same team based on labels, making workload rescheduling more efficient.
What do you think about this question?:
I believe this feature would make the WorkloadRebalancer even more flexible, allowing dynamic resource selection through label selectors, similar to what PropagationPolicy offers.
Environment:
Karmada version: v1.10.4 Kubernetes version: v1.25.6
@chaosi-zju