-
Notifications
You must be signed in to change notification settings - Fork 900
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
I would like to have a strategy: Karmada will prioritize pods to cluster A when scheduling pods, and will only schedule pods to cluster B when cluster A is insufficient (pending), how can this process be automated? #5997
Comments
Is your requirement like this? https://github.com/karmada-io/karmada/pull/5512/files We are working on best practices for this issue, if you also have this request, then great, we can invite you to discuss it together~ |
Hi @Schwarao I think the affinity groups might help. |
yes,This is indeed the requirement, but I only need to complete the pod resource type here |
Pod resources are much simpler. You can try the existing solution(affinity groups) first. If there is anything you don't satisfy with this solution, please give feedback in time. |
But it seems that it shouldn't work: After creating a file here, it is still scheduled and in pending:
|
@chaosi-zju #4694 |
yes
maybe you didn't specify
sorry, I didn't get your mean? do you mean you want to improve our website doc to prevent users from missing this information? |
Yes, there is no mention in the content of Multiple cluster affinity groups in the documentation that you need to specify replicaScheduling replicaScheduling StaticWeight, you see if you need to optimize |
Of course, I really need it. Thank you so much for your help!
When matching policies, the resource template selects the highest priority policy. You can manually set policy priorities; if none are declared, the implicit priority is based on the accuracy of the resourceSelector. (see explicit and implicit priority) another method is group pods by labels and use labelSelector in policy to select resource. |
I would like to have a strategy: Karmada will prioritize pods to cluster A when scheduling pods, and will only schedule pods to cluster B when cluster A is insufficient (pending), how can this process be automated?
The text was updated successfully, but these errors were encountered: