-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
How to run dat inside kubernetes #1158
Comments
I think @ninabreznik and @Jam10o were messing around with getting it to work in docker. I'd assume that it'll be hard to get incoming connections to work (or the DHT?), but I don't have hands on experience with it myself. |
Thanks, btw I've tested the above solution on nodes that dont have public ips with success. Would still like avoid |
@dwiel that's great. Can you share your dockerfile to see your configuration and hopefully make it run too? Thanks @RangerMauve for a ping! |
The dockerfile is very simple:
|
From another thread here i got the flags for running inside of docker (not kubernetes): |
Thanks, @dwie. I actually tried this but it somehow doesn't work. Maybe I am missing something else here, but if you want to check my repo that I containerize and run on Digital Ocean, please check it out and if you have any comment/suggestion, please let me know https://github.com/ninabreznik/ethplay |
It looks like you are missing udp port 3282. You have to open udp ports independently from tcp ports. |
Like this? https://github.com/ninabreznik/ethplay/blob/master/Dockerfile I tried this and then ran it on Digital Ocean with a command |
Hmm, that looks right. Have you tried running |
The problem is I am running a hypertrie and afaik dat doctor doesn't work
with the hypertrie, so I am not sure how to debug this...
…On Thu, Oct 31, 2019 at 11:29 AM Zach Dwiel ***@***.***> wrote:
Hmm, that looks right. Have you tried running dat doctor from inside the
container? That helped me debug my setup.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1158>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAIGZS6FHIOTSIQCA5HEDD3QRJNJ5ANCNFSM4JEWDLFA>
.
--
---
Nina Breznik, Vision Baker
play.ethereum.org
wizardamigos.com
Twitter: @ninabreznik
Telegram: +1 510 747 84 39
Gitter: gitter.im/ninabreznik
|
This is interesting. @ninabreznik you can try add
If everything is starting OK, the debug should output any connection error. Maybe that could help to debug. |
@dpaez That's cool, thanks. Now, I see that there is another problem. And that's the fact that discovery-swarm-web doesn't support hypertrie... Any idea how to fix this? Or how to use hyperswarm in the browser? |
@ninabreznik I haven't used |
Thanks @dpaez, looks like something @RangerMauve mentioned too. He'll try to help out and we'll see what needs to be done and how to fix it :) Thanks a lot for helping out. Will share my findings once I make it work 👯♀️ |
Is anyone successfully running dat from inside kubernetes? The following Deployment is currently working for me, but it would be nice to avoid requiring
hostNetwork: true
. Also wondering how to best specify the .dat keys. I am currently sharing them from the host which works all right in this scenario, but isn't a very general solution. Also, the node this container is running on essentially has a public ip which might be making this easier. I haven't yet tested it from inside kubernetes on a node without a public ip.The text was updated successfully, but these errors were encountered: