camel-k icon indicating copy to clipboard operation
camel-k copied to clipboard

Camel K doesn't support kubernetes services of type loadbalancer

Open pabloxtiyo opened this issue 4 years ago • 5 comments

Hi Guys, do you know how to change/modify the service that camel k creates by default from ClusterIp to LoadBalancer? im running this command:: kamel run StackDriverWebHookRoute.java --dependency=camel-rest --dependency=camel-restlet -n arch --dev

but service is always a ClusterIp image

pabloxtiyo avatar Nov 21 '19 19:11 pabloxtiyo

Thanks for the feedback. There is currently no option to set the service type, hence defaulting to ClusterIP, though it should be straightforward to add an option to the service trait.

astefanutti avatar Nov 28 '19 07:11 astefanutti

This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!

github-actions[bot] avatar Jan 01 '22 00:01 github-actions[bot]

I've faced the same issue, and solved by creating an adicional service as LoadBalancer. Let's say your service deployed using kamel run is being called "rest-dsl", then below kubectl cli will create a new service called "rest-dsl-lb". Then you can keep kamel deploying into a NodePort type and the LoadBalancer will redirect to that. I hope that helps:

kubectl expose service rest-dsl --name rest-dsl-lb --port=80 --type=LoadBalancer --target-port=8080

sschere avatar Jan 27 '22 16:01 sschere

This issue has been automatically marked as stale due to 90 days of inactivity. It will be closed if no further activity occurs within 15 days. If you think that’s incorrect or the issue should never stale, please simply write any comment. Thanks for your contributions!

github-actions[bot] avatar Jun 28 '22 00:06 github-actions[bot]

Right now Service trait only has NodePort bool flag but we should introduce a new property Type that accepts ClusterIP, NodePort, and LoadBalancer and deprecate the NodePort bool flag.

tadayosi avatar Jul 29 '22 03:07 tadayosi

Should be fixed by https://github.com/apache/camel-k/pull/3618

essobedo avatar Sep 07 '22 15:09 essobedo