Closed willcl-ark closed 3 months ago
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
warnet | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Dec 22, 2023 3:19am |
Thanks, I'll try address this this evening. Agree it's not ready yet.
It's very annoying (with asmap) the workflow requires us to start the pods, wait for ip addresses, and then pass those ip addresses back to bitcoind before it starts :S
OK I updated those nits, but it's still not going to be any good to merge... Need to brainstorm how it would be possible to build an ASMap on k8s.
The only "sane" way I can think of doing it, which might work on both systems, is to override the default command (bitcoind
) with cat /dev/null
, wait for the containers to start, fetch the ip addresses, build the asmap, load it in, then use exec
to start bitcoind.
This might have it's own problems though, for example if bitcoind crashes the container won't notify as the "main" process is now cat
:(
Any other less insane ideas?
In k8s there is a concept of init containers which I think might be worth considering for this. Init containers are part of the same pod, they run to completion before the main workload container starts.
How about:
The reason I think we will need a single volume that all pods mount is that I don't think it's possible to mount the volume after pod creation. As the RPC pod is long running it would have started before any tanks and their respective volumes were created.
Going to close this for now. As we are looking like we are going to fallback to orchestrator-assigned ip addresses, either with @pinheadmz nftables approach, or patched images a-la #261, ASMap will not work easily in either case.
We can revisit if needed.
Another go at using ASMap.
This time do not rely on copying in asmap.dat when we build the container, instead (in Dockerland) mount it as a volume into each container.
Missing: