-
Notifications
You must be signed in to change notification settings - Fork 215
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
Karpenter as default scheduler #739
Comments
This is something we have entertained. In fact, Karpenter previously performed the scheduling operation by binding the pods directly to the nodes (even though Karpenter was not the configured scheduler). We've been moving away from doing more non-standard things and trying to stay in-line with kube-scheduler. There may be some things that would be easier if Karpenter were a custom scheduler but configuring a cluster with a custom scheduler tends to be a more intrusive thing to do than to just work with kube-scheduler, so we likely won't take that path unless there's a significant benefit in doing-so and the experience doesn't degrade of an installation and configuration perspective. Are there specific problems you are encountering where Karpenter's simulated scheduling decisions do not match what kube-scheduler actually does? We are aware that kube-scheduler can make different decisions but these usually only result in temporary inefficiencies which can solved with Karpenter's consolidation mechanism. |
I do not see a real problem here, I was just thinking about possible inefficiencies... |
This is the first real problem we have seen: aws/karpenter-provider-aws#3577 |
Hi @bwagner5 very excited to see your awesome answer here. I'm a fan of this project, but many of my friends also have the same question that why in provisioner we need to simulated scheduling decisions? In code level, we see that the provisioner will try to schedule a pod to an Existingnode first (we can see Existingnode keeps the relations with pods running on it) and we can see the corresponding logs of nomination, but we really don't get the point that why we need to predict the kube-scheduler's behaviour when it is trying to "schedule" a pod to an ExistingNode.(I'm referring to scheduler.solve() method, it will try to list all the existing node first to see if there is any node can be suitable to a pod. but this process is just like a prediction of "bind"). |
The Kubernetes project currently lacks enough contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle stale |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues. This bot triages un-triaged issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /lifecycle rotten |
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs. This bot triages issues according to the following rules:
You can:
Please send feedback to sig-contributor-experience at kubernetes/community. /close not-planned |
@k8s-triage-robot: Closing this issue, marking it as "Not Planned". In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Tell us about your request
Right now karpenter is simulating how the kube-scheduler would react in a given scenario. The simulation by karpenter and final decision by kube-scheduler is also not happening at the exact same time.
Maybe it would make sense to have karpenter as a replacement for kube-scheduler?
If it can simulate scheduling decision anyway, it should not be a big effort to replace it completely?
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
na
Are you currently working around this issue?
na
Additional Context
Default scheduler could be changed like this:
https://stackoverflow.com/questions/63830665/how-to-change-default-kube-scheduler-in-kubernetes
Attachments
No response
Community Note
The text was updated successfully, but these errors were encountered: