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

Allow ability to choose the host port #7

Open
ahmetb opened this issue Oct 8, 2018 · 1 comment
Open

Allow ability to choose the host port #7

ahmetb opened this issue Oct 8, 2018 · 1 comment

Comments

@ahmetb
Copy link

ahmetb commented Oct 8, 2018

It seems like kubehost bind always binds to port 80. As far as I can tell, this prevents kubehost to be used with multiple exposed services at once (#2) as it tries to reuse port 80.

@WilliamDenniss
Copy link
Collaborator

The deployment kubehost bind creates will use the same port specified by your clusterIP service.

Note that there is a current documented limitation that we only support services with one port (specifically: it'll use the first one it finds).

Here's the specific code:

declare -r service_port="$(kubectl get service ${service} -o=jsonpath='{.spec.ports[0].port}')"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants