You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "lburgazzoli (via GitHub)" <gi...@apache.org> on 2023/05/09 09:28:45 UTC

[GitHub] [camel-k] lburgazzoli commented on issue #4347: Support for Istio sidecar injection for Kamelets data plane

lburgazzoli commented on issue #4347:
URL: https://github.com/apache/camel-k/issues/4347#issuecomment-1539775521

   It should be possible to add annotation with something like that:
   
   ```yaml
   apiVersion: camel.apache.org/v1alpha1
   kind: KameletBinding
   metadata:
     name: telegram-text-source-to-channel
     annotations:
         # istio
         sidecar.istio.io/inject: true
         # instruct camel-k to propagate the annotation to children
         trait.camel.apache.org/owner.target-annotations: '[ "sidecar.istio.io/inject" ]'
   spec:
     source:
       ref:
         kind: Kamelet
         apiVersion: camel.apache.org/v1alpha1
         name: telegram-text-source
       properties:
         botToken: the-token-here
     sink: 
       ref:
         kind: InMemoryChannel
         apiVersion: messaging.knative.dev/v1
         name: messages
   ```
   
   However, camel-k would leverage i.e. knative sink binding to get the actual endpoint to invoke so, this would only work if the injected url is "sidecar" aware.
   
   We could also think to add some native support for istio/service-mesh in camel-k


-- 
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