Deploy Public Rinkeby Node
Deploy Rinkeby Node
Rinkeby is a Proof of Authority public Ethereum test network, used by developers to test their dApps.
The following manifest describes an Ethereum node that joins rinkeby network network: rinkeby
, and uses Hyperledger Besu client client: besu
:
Joining any Ethereum network is as easy as setting node's spec.network
value, which accepts values like mainnet
, rinkeby
, goerli
, xdai
... etc. After the node is created, you can't change spec.network
.
Apply rinkeby.yaml
manifest:
Kotal operator will notice your rinkeby-besu-node
and will create all the necessary pods, persistent volumes, services, configmaps, and secrets neccessary.
You can fetch the deployed Ethereum Node
using:
It will return an output similar to the following:
Fetch Node Logs
Get the pods that has been created by Kotal for the node:
It will return an output similar to the following:
If pod STATUS
is Pending
, most probably it's due to not enough cpu and memory, because Kotal allocates lots of cpu cores and memory for public nodes. The required node resources can be changed using spec.resources.cpu
, spec.resources.memory
, and spec.resources.storage
.
Get the logs of the running node:
Call JSON-RPC Method
Let's update our node by enabling JSON-RPC HTTP server:
Kotal defaults node missing spec parameters like:
JSON-RPC HTTP server port is defaulted to 8545.
JSON-RPC HTTP server enabled modules are defaulted to: eth, net, and web3.
Blocks Synchronization mode is defauled to
fast
in public networks.
For a comprehensive reference on Ethereum Node
and default spec parameter values, check our ethereum reference
Apply the new version of rinkeby.yaml
:
Forward localhost:8545 calls to the node pod:
In another terminal window call eth_syncing
JSON-RPC method
You will get JSON result similar to the following:
Finally you can delete the node by:
Kubernetes garbage collector will delete all the resources that has been created by Kotal Ethereum Node
controller.
Last updated