-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
Fix address already in use #29
Fix address already in use #29
Conversation
Thanks for the contribution! 🙂 |
I use host network.
I am actually trying to launch SEPIA server on TrueNAS. It has built-in Kubernetes and uses Helm charts for app distribution. |
Note this line https://github.com/vvbogdanov87/truenas-charts/blob/0db3c869ce61cbfc22e142376ea457d12d2bf65c/charts/sepia/0.0.2/templates/deployment.yaml#L33
This is the situation to think about. Not all logs of app subsystems(nginx, elasticsearch) go to stdout or stderr. This makes debuging of the container bit more challenging. Logs probably should be redirected to stdout. |
I see the problem, but is there any specific reason why you use the host network? Network isolation is meant to prevent errors exactly like the one you've encountered. Also I'm not sure if you still need the port configuration if you're using the host network anyway. Besides port 80 there are additional ports used for SEPIA micro services: 20721-20723 and in the future there might be additional ones for STT and TTS so you always have to keep an eye on those too if in 'host network' mode. |
I use host network on my TrueNAS Kubernetes deployments just to keep things simple. In any case, unused port 80 shouldn't be used. I could help out with making SEPIA containers more Kubernetes friendly and write a helm chart for it. TrueNAS is quite popular as a home server OS. The latest version TrueNAS SCALE uses Kubernetes as a container orchestration engine and uses a slightly modified Helm charts repository as an application distribution mechanism. I believe having the ability to run SEPIA on TrueNAS by clicking one button in TrueNAS UI will help with SEPIA adoption among enthusiasts. |
I don't really think that will keep things simple tbh. Almost all containers use some ports internally and will only explicitly mention the ones that have to be exposed to the outside world (e.g. define them in a docker compose YAML etc.). Most devs will feel safe inside their containers or simply forget to disable certain defaults (like port 80 in SEPIA ^^). In the worst case you are opening up ports that were meant to be private.
In principle I agree the principle ^^ but in reality the distinction between micro- and macro-service is often not very clear. In SEPIA for example there is a hard cut between Assist-Server (your SEPIA Home container) and STT-Server, they both run completely independent of each other. Between the "micro"-services that build the SEPIA-Home stack boarders are not that obvious. Many devs might split up code just to avoid large monolithic structures or to better distribute work.
I'm not familiar with Helm Charts (yet) but I'd certainly be interested in increased compatibility and adapting to standards 🙂 . Feel free to open a new discussion if you have any ideas or suggestions. Something I was planning to do at some point was good Docker compose files. It looks like Helm Charts could make good use of that as well :-).
Sounds good 🙂 |
Disables default Nginx site.
The default Nginx site binds to port 80 which can be already in use if the container is started with host network.