-
Notifications
You must be signed in to change notification settings - Fork 41
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
Support exposed port as environment variable #4
Comments
Hi! I'm not sure if I understood, if you have port clashes in your docker host you can run something like:
So that you can access cerebro in If you want to run and expose the incoming port different than 9000, I guess you can do it in the docker run command https://docs.docker.com/engine/reference/run/#expose-incoming-ports. |
thanks for the reply @moliware I know it's possible when running docker like this, however, within a kubernetes cluster you cannot map ports like this unfortunately. All containers within a pod must only ever use distinct ports, and k8s doesn't support port mappings. |
PR merged! Thank you! |
Hey!
Thanks for this project, very useful - I'll be moving over from Kopf soon.
I'm currently setting up preview environment for my PRs, where each environment has it's own copy of elasticsearch etc. I'm currently getting some port clashes with the other services within my stack.
I see on the Cerebro config you can specify something like
http.port=1234
to change the exposed port.I'm wondering if it would be possible to update the Dockerfile to allow us to set the port as an environment variable? I can have a go raising a PR some point soon, just wondered if anything was in the works?
The text was updated successfully, but these errors were encountered: