-
Notifications
You must be signed in to change notification settings - Fork 919
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 not replacing a node if you created daemonset and node doesn't have enough capacity #4242
Comments
This a common scenario that comes up. We normally recommend using a priority class to enable the replacement of the nodes: https://karpenter.sh/docs/faq/#when-deploying-an-additional-daemonset-to-my-cluster-why-does-karpenter-not-scale-up-my-nodes-to-support-the-extra-daemonset |
This issue has been inactive for 14 days. StaleBot will close this stale issue after 14 more days of inactivity. |
when the daemonset that needs placement has equivalent priority to the other pods (cluster critical in my case) karpenter will still not create vms that are large enough to place a pending daemonset pod. so if your minimum set of required daemonset pods can't schedule karpenter can end up with pending daemonset pods that never schedule. the workaround is to exclude instances that are too small for your workload but this isn't ideal - it would be better if karpenter could handle this. |
Agreed that this isn't ideal. Karpenter currently supports the requirements:
- key: karpenter.k8s.aws/instance-cpu
operator: Gt
values: ["16"]
- key: karpenter.k8s.aws/instance-memory
operator: Gt
values: ["61440"] |
Looks to me like this is a duplicate of kubernetes-sigs/karpenter#731 so going to close this. Please +1 that issue if you are interested in us prioritizing that feature. |
Description
Observed Behavior:
if you create daemonsets and the currently running node does not have enough capacity to run the pod, Karpenter will not replace the node
Expected Behavior:
if you create daemonsets and the currently running node does not have enough capacity to run the pod, Karpenter should create a new node with required resource capacity
Reproduction Steps (Please include YAML):
Apply a test DaemonSet with resource-intensive demands, such as a large memory or CPU requirement, on a currently running node that lacks the necessary capacity to accommodate that pod
Versions:
v0.28
kubectl version
):1.24
The text was updated successfully, but these errors were encountered: