-
Notifications
You must be signed in to change notification settings - Fork 345
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
Kamelet add support for tolerations #2602
Comments
You should be able to configure the toleration trait, e.g.: apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: rabbitmq-message-source-binding
namespace: default
spec:
sink:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: my-service
namespace: default
source:
properties:
address: rabbitmq://myrmqexample.com
header: ce-type
header-value: my.header
ref:
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
name: rabbitmq-message-source
integration:
traits:
- toleration:
configuration:
taints:
- node-role.kubernetes.io/master:NoSchedule
template:
spec:
nodeSelector:
myApps: "true" @mmelko would you remember why we didn't add the |
@astefanutti Hi, unfortunately I don't, probably we left it among with other things for the next iterations :) |
@mmelko yes I guess we did not add it as it requires a bit more work and extra care to handle "merging" with the toleration trait. |
I really appreciate your help and the quick response time, with a small change from your example I was able to make it work :) apiVersion: camel.apache.org/v1alpha1
kind: KameletBinding
metadata:
name: rabbitmq-message-source-binding
namespace: default
spec:
sink:
ref:
apiVersion: serving.knative.dev/v1
kind: Service
name: my-service
namespace: default
source:
properties:
address: rabbitmq://myrmqexample.com
header: ce-type
header-value: my.header
ref:
apiVersion: camel.apache.org/v1alpha1
kind: Kamelet
name: rabbitmq-message-source
integration:
traits:
toleration:
configuration:
enabled: true
taints:
- myApps=true:NoSchedule
template:
spec:
nodeSelector:
myApps: "true" |
Some syntactic sugar for this is provided by annotations: https://camel.apache.org/camel-k/latest/kamelets/kamelets-user.html#_trait_via_annotations. Last resort is to specify the trait in the Closing the issue, feel free to open a new one if anything else unclear. |
Hi, I am using camel-k 1.5.0 and knative v0.24.0 and I created a kamelet that gets messages from rabbitmq and sends them to a knative service, I would like to configure everything on the kamelet level because it creates the integration which creates the deployment.
I am able to configure a nodeSelector but it is not possible to configure a toleration. Please add support in the kamelet for adding a toleration or let me know about how it is possible on the kamelet/kameletbinding level ( not on the integration/deployment level)
Thank you in advance, appreciate your support on this
The text was updated successfully, but these errors were encountered: