Skip to content
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

Support custom schedulers #2030

Open
saurav-agarwalla opened this issue Feb 26, 2025 · 1 comment
Open

Support custom schedulers #2030

saurav-agarwalla opened this issue Feb 26, 2025 · 1 comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-priority triage/needs-investigation Issues that need to be investigated before triaging

Comments

@saurav-agarwalla
Copy link
Contributor

saurav-agarwalla commented Feb 26, 2025

Description

What problem are you trying to solve?
Feature request for aws/karpenter-provider-aws#7265.

Observed Behavior: we have deployed a custom scheduler in our EKS cluster that keeps in view of some extra paramaters while scheduling pod on a node, it would stop scheduling on a node if there are specific number of pods already in a RUNNING state on that node. so it may happen that a node has required capacity to schedule a pod but the custom-scheduler won't schedule on it.

eg: karpenter giving this log on a pending pod, Pod should schedule on: nodeclaim/shaarif-nodepool-fccsj, node/ip-10-0-253-116.ap-southeast-1.compute.internal this is the status of the pending pod

status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2024-10-22T11:31:06Z"
    message: '0/33 nodes are available: 32 node(s) didn''t match Pod''s node affinity/selector.
      preemption: 0/33 nodes are available: 1 No preemption victims found for incoming
      pod, 32 Preemption is not helpful for scheduling.'
    reason: Unschedulable
    status: "False"
    type: PodScheduled
  phase: Pending
  qosClass: BestEffort

since the node has the capacity to schedule a pod but the custom scheduler filters out that node from scheduling as per the custom logic. as a consequence the pod stays in pending state for eternity. Expected Behavior: karpenter should spin up a node for a pod if it is marked unschedulable by any scheduler.

Reproduction Steps (Please include YAML): "Deploy a custom scheduler with a scheduler extender to filter out potential nodes, considering additional constraints."

Versions: karpenter version : 0.34.0 k8 release: 1.29.8 custom-kube-scheduler image: v1.25.12

* Chart Version:

* Kubernetes Version (`kubectl version`): v1.29.8-eks-a737599


* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request

* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request

* If you are interested in working on this issue or have submitted a pull request, please leave a comment

How important is this feature to you?

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment
@saurav-agarwalla saurav-agarwalla added the kind/feature Categorizes issue or PR as related to a new feature. label Feb 26, 2025
@k8s-ci-robot k8s-ci-robot added needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. needs-priority labels Feb 26, 2025
@saurav-agarwalla
Copy link
Contributor Author

/triage needs-investigation

@k8s-ci-robot k8s-ci-robot added triage/needs-investigation Issues that need to be investigated before triaging and removed needs-triage Indicates an issue or PR lacks a `triage/foo` label and requires one. labels Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/feature Categorizes issue or PR as related to a new feature. needs-priority triage/needs-investigation Issues that need to be investigated before triaging
Projects
None yet
Development

No branches or pull requests

2 participants