-
Notifications
You must be signed in to change notification settings - Fork 0
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
Hello, World: Pass listening port in YAML config #9
Comments
A Python2 version of the echo server is available from my fork of this repo, https://github.com/aaaaalbert/edgenet-project.github.io/blob/simpler-hello-world/assets/other/echo_server.py . It takes the listening port as a command line argument. |
Alternatively and perhaps even simpler, the server inside the container can run on and expose via the I'm testing this in my "mini hello world" right now. |
The Example:
|
I suggest creating a new organization called
Cant you just say: "Replace |
Thanks for the suggestion! We have https://hub.docker.com/r/edgenetproject/ for this purpose already, but the |
I think so, but I got stuck testing last week due to responsiveness issues with nodes. (The nodes were restarted since.) |
You can, just remove |
http://alesnosek.com/blog/2017/02/14/accessing-kubernetes-pods-from-outside-of-the-cluster/ |
Thank you very much for pointing this out. Tested & working in the upcoming "mini hello world", aaaaalbert@c23ce18e9a9bf2ae0642177b8b3fec8e78066c1f. |
I wonder about the port range 40000-65000. RFC 6335 (IANA) recommends 49152-65535:
|
Is it possible to specify this? I haven't found out yet. |
|
I try to streamline the Hello, World tutorial and remove as many preparation steps as possible. For example, I want to reuse an existing image off DockerHub instead of having to create my own.
However, the NodeJS code currently has the listening port number hardcoded. I can't thus reuse someone else's image because then I might hit their old deployed instance unknowingly.
A way around having to rebuild the Docker image for every experimenter could be to supply the listening port through the YAML config: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/
This should allow us to start the NodeJS server inside the Docker image with per-experimenter config from the YAML, i.e. a single image will do for everyone taking the tutorial.
The text was updated successfully, but these errors were encountered: