Best solution to deploy geth(go-ethereum) on kubernetes(aws eks)

11/25/2021

I am trying to deploy geth on kubernetes.I need to have all of my pods(2 currently) to have a common volume(persistent volume) mounted to the "/data/geth/chaindata" folder.i.e each pod reads and writes chaindata from a common volume. The requirement is mainly due to large size of chaindata folder.I tried to mount chaindata folder of all three pods to a common persistent volume but got this error

Fatal: Failed to register the Ethereum service: resource temporarily unavailable

Error image. I am also sharing the deployment file

Deployment file.If each pod has different persistent volumes mounted then a lot of redundant disk space will be occupied. What can be an optimized solution to this?.Having different persistent volume for different pods is the only way ?

-- sahil singh
amazon-eks
devops
geth
go-ethereum
kubernetes

0 Answers