Adding labels to Pods in ScaledJob #1742
-
Hi there. I'm trying to enforce one-pod-per-node using a podAntiAffinity rule. I'd like the rule to work based on a label on the pod, however I'm unable to apply custom labels. I found this resolved issue: #1627 and attempted to upgrade my Keda installation, hoping it would fix my issue - but I'm still seeing no labels on my pods when the jobs spin up (and the antiAffinity rule isn't working as needed). Simple/n00b question first - is the #1627 fix deployed? How can I be sure that my Keda installation has this fix? Here's the output for Here is the relevant yaml:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
I would need to dig into it but it looks like the labels from the |
Beta Was this translation helpful? Give feedback.
-
This sub-reply from @zroubalik was the solution. When updating Keda it is necessary to update the CRDs as well. Quoting so I can mark the correct answer. |
Beta Was this translation helpful? Give feedback.
This sub-reply from @zroubalik was the solution. When updating Keda it is necessary to update the CRDs as well. Quoting so I can mark the correct answer.