art-pepper edited a comment on issue #2602:
URL: https://github.com/apache/camel-k/issues/2602#issuecomment-907215646
> You should be able to configure the _toleration_ trait, e.g.:
>
> ```yaml
> 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 `tolerations` field on
the Integration `PodSpec`?
I really appreciate your help and the quick response time, with a small
change from your example I was able to make it work :)
```yaml
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"
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]