Closed lsergio closed 11 months ago
Just found out that if I enable the affinity trait explicitly it works:
traits:
affinity:
enabled: true
nodeAffinityLabels:
- "karpenter=false"
As the examples at https://camel.apache.org/camel-k/2.1.x/traits/affinity.html don't set the enabled property, I assume the default should be true, as it is for other traits.
The documentation states it clearly: it's disabled by default. Not all trait are enabled by default, so, always better have a look at the doc.
Sorry @squakez. I missed that
@lsergio no problem, we're here to help :smiley:
What happened?
After creating an integration with node affinity labels configured at the Affinity Trait, the integration pod/deployment does not contain the affinity configuration and thus does not respect what is configured.
Steps to reproduce
Create an integration using kubectl as below:
Camel K version
2.1.0 and 2.2.0-nightly