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

Camel K doesn't support kubernetes services of type loadbalancer #1070

Closed
pabloxtiyo opened this issue Nov 21, 2019 · 6 comments · Fixed by #3618
Closed

Camel K doesn't support kubernetes services of type loadbalancer #1070

pabloxtiyo opened this issue Nov 21, 2019 · 6 comments · Fixed by #3618
Assignees
Labels
good first issue Does not require full understanding of the codebase kind/feature New feature or request status/never-stale

Comments

@pabloxtiyo
Copy link

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

@astefanutti astefanutti added the kind/feature New feature or request label Nov 28, 2019
@astefanutti
Copy link
Member

astefanutti commented Nov 28, 2019

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.

@github-actions
Copy link
Contributor

github-actions bot commented Jan 1, 2022

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!

@sschere
Copy link

sschere commented Jan 27, 2022

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

@github-actions
Copy link
Contributor

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!

@tadayosi tadayosi added good first issue Does not require full understanding of the codebase status/never-stale and removed status/stale labels Jul 29, 2022
@tadayosi tadayosi reopened this Jul 29, 2022
@tadayosi
Copy link
Member

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.

@essobedo
Copy link
Contributor

essobedo commented Sep 7, 2022

Should be fixed by #3618

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Does not require full understanding of the codebase kind/feature New feature or request status/never-stale
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants