You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
observing karpenter logs and experimenting with scheduling pods of different sizes, I could find that karpenter's calculations for daemonset resources excludes this pod
I could confirm this by checking the code.
here it is reading only the first of the affinities relying on an outer loop to remove the first affinity and continue with the next one
but, this is not happening for daemonset calculation as shown here
to validate my findings, I flipped the affinities order and the calculations were corrected
Description
Observed Behavior:
I craeted a daemonset that has the following nodeAffinity
observing karpenter logs and experimenting with scheduling pods of different sizes, I could find that karpenter's calculations for daemonset resources excludes this pod
I could confirm this by checking the code.
here it is reading only the first of the affinities relying on an outer loop to remove the first affinity and continue with the next one
but, this is not happening for daemonset calculation as shown here
to validate my findings, I flipped the affinities order and the calculations were corrected
Expected Behavior:
all affinities should be considered for calculating daemonset resources
Reproduction Steps (Please include YAML):
Versions:
kubectl version
): v1.30.2The text was updated successfully, but these errors were encountered: