-
Notifications
You must be signed in to change notification settings - Fork 932
When joining new member cluster, the karmada-scheduler will reschedule some rbs even if their replicas is 0 #6156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
/assign @LivingCcj |
When the karamda scheduler schedules rb objects, some scenarios require scheduling decisions based on the type of object that the rb object points to. Therefore, we need to add a field to the rb object to identify the resource type of the target object. Below are several approaches to determine the resource type of the target object when creating an rb resource:
Here are several proposals that need to be discussed @RainbowMango |
Append the 4-th approach:Use the exist interpreter karmada/pkg/detector/detector.go Lines 765 to 773 in 2f6ff56
And How to use a field
|
What happened:
when joining a new member cluster, karmada-schduler will reschedule some resourcebindings(rb). Even if the replica of rb is 0 and point to workload, karmada-scheudler will binding the new member to rb and karmada-controller-manager will create the work and workload.
here is the relevant code
karmada/pkg/scheduler/scheduler.go
Lines 393 to 401 in 006cf70
What you expected to happen:
If the replica of rb is 0 and point to workload , karmada-scehduler should ignore to reschedule these rbs.
Anything else we need to know?:
the
replicaSchedulingType
of their PropagationPolicy isDivided
Environment:
kubectl-karmada version
orkarmadactl version
): v1.4.1The text was updated successfully, but these errors were encountered: