Skip to content
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

Create a Istio trait #209

Closed
nicolaferraro opened this issue Nov 8, 2018 · 2 comments
Closed

Create a Istio trait #209

nicolaferraro opened this issue Nov 8, 2018 · 2 comments
Assignees
Projects

Comments

@nicolaferraro
Copy link
Member

While developing the Knative integration I've noticed that outgoing connections are not allowed when the pod is embedded into the Istio mesh.

If you want to contact e.g. slack you should add a EgressRule like:

apiVersion: networking.istio.io/v1alpha3
kind: ServiceEntry
metadata:
  name: slack-ext
spec:
  hosts:
  - hooks.slack.com
  ports:
  - number: 443
    name: https
    protocol: HTTPS
  resolution: DNS
  location: MESH_EXTERNAL

It would be great if we can add a Istio trait that can add those rules automatically (as child resource of the Integration).

Users may be able to run a integration like:

kamel run -t istio.egress.slack=https://hooks.slack.com slack.groovy

That will end up in the Integration resource, in the istio trait and then materialized by the operator.

The next big thing would be to add such egress rules automatically from the code... But we don't have such metadata in Camel. Some endpoints, instead, are self describing, such as .to("http://..").

Does anyone know if there's a "wildcard" authorization for Istio egresses or external services should all be declared?

@nicolaferraro nicolaferraro added this to To do in Traits via automation Nov 8, 2018
@lburgazzoli
Copy link
Contributor

@nicolaferraro is this still needed ?

@nicolaferraro
Copy link
Member Author

Yes, but we maybe want to go in another direction. Look at: istio/istio#9304 (comment)

The istio trait may add the traffic.sidecar.istio.io/excludeOutboundIPRanges: 0.0.0.0/0 annotation to the pod template, so that our pods are free to contact the outside world.

@nicolaferraro nicolaferraro self-assigned this Dec 4, 2018
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Dec 6, 2018
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Dec 6, 2018
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Dec 6, 2018
nicolaferraro added a commit to nicolaferraro/camel-k that referenced this issue Dec 6, 2018
Traits automation moved this from To do to Done Dec 6, 2018
ipolyzos pushed a commit to ipolyzos/camel-k that referenced this issue Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Traits
  
Done
Development

No branches or pull requests

2 participants