You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by GitBox <gi...@apache.org> on 2021/08/27 13:46:49 UTC
[GitHub] [camel-k] art-pepper commented on issue #2602: Kamelet add support for tolerations
art-pepper commented 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"
> containers:
> - name: integration
> ```
>
> @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 :)
```
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"
containers:
- name: integration
```
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org