SatoshiPortal / cyphernode

Modular Bitcoin full-node microservices API server architecture and utilities toolkit to build scalable, secure and featureful apps and services without trusted third parties
MIT License
364 stars 68 forks source link

Cyphernode Kubernetes #227

Open AlbertIntelligence opened 3 years ago

AlbertIntelligence commented 3 years ago

How would I run CypherNode on a kubernetes cluster ?

Kexkey commented 3 years ago

It's a good question, I'm not knowledgeable enough with Kubernetes to advise.

@carloschida maybe you would have useful insights here?

carloschida commented 3 years ago

Sorry about the long delay, this one got buried under all my other notifications.

Well, basically you'd need to decompose the services described in docker-compose-sample.yaml each into a separate k8s service.

But before even attempting such epic task, the question to answer here is what problem are you trying to address, @BytesTrust? I see little to no gains from running cyphernode as a (native) k8s app/service.

If it's to reuse existing infrastructure, I would suggest creating a new image that inside pulls the cited docker-compose file to be executed. Note that you would still have to deal with the disk management.

Long story short, not possible out-of-the-box. It needs substantial tweaking to turn the docker described networks and volumes into their k8s counterparts.