You can find a summary of the article on Ethercluster, an open-source alternative to Infura, in the highlighted section.
reddit.com
medium.com
altcoinbuzz.io
provide me a step by step guide explaining how to build Ethercluster using Hyperledger-Besu, Kubernetes K3s, and local bare metal instead of a cloud provider
Building an Ethercluster using Hyperledger-Besu, Kubernetes K3s, and local bare metal can be a complex process, but the following step-by-step guide will help you get started:
Step 1: Set up the environment
1.1. Install Hyperledger Besu on your local bare metal environment. You can follow the official Hyperledger Besu installation guide to perform this step.
1.2. Install Kubernetes K3s on your local bare metal environment. You can follow the official K3s installation guide to perform this step.
Step 2: Configure the configuration files
2.1. Create a new directory for your Ethercluster configuration files.
2.2. Create a new configuration file called config.toml
in the directory you created in step 2.1.
2.3. Update the config.toml
file with the following configuration details:
[cluster] name = "Ethercluster" description = "My Ethercluster" type = "Kubernetes" [k8s] version = "1.19.3" [besu] version = "21.4.1" [network] credentials = "my-cluster-creds.yaml"
Replace the version
values with the appropriate version numbers for Kubernetes and Hyperledger Besu.
Step 3: Create the Kubernetes cluster
3.1. Create a new Kubernetes cluster using K3s by running the following command:
k3s create cluster --name my-cluster
Replace my-cluster
with the name of your cluster.
Step 4: Create the Hyperledger Besu configuration file
4.1. Create a new directory for your Hyperledger Besu configuration files.
4.2. Create a new configuration file called besu_config.toml
in the directory you created in step 4.1.
4.3. Update the besu_config.toml
file with the following configuration details:
[cluster] name = "Ethercluster" description = "My Ethercluster" type = "Kubernetes" [k8s] version = "1.19.3" [besu] version = "21.4.1" [network] credentials = "my-cluster-creds.yaml"
Replace the version
values with the appropriate version numbers for Kubernetes and Hyperledger Besu.
Step 5: Deploy the Hyperledger Besu deployment
5.1. Use the following command to deploy the Hyperledger Besu deployment:
kubectl create deploy my-besu-deployment -f besu_config.toml --image besu/besu-node:v21.4.1
Replace my-besu-deployment
with the name of your Hyperledger Besu deployment.
Step 6: Deploy the Ethercluster deployment
6.1. Use the following command to deploy the Ethercluster deployment:
kubectl create deploy my-ethercluster-deployment -f config.toml --image ethercluster/ethercluster-node:v1.19.3
Replace my-ethercluster-deployment
with the name of your Ethercluster deployment.
Step 7: Expose the Ethercluster port
7.1. Use the following command to expose the Ethercluster port:
kubectl expose deploy my-ethercluster-deployment --port=8546 --type=NodePort
Replace my-ethercluster-deployment
with the name of your Ethercluster deployment.
Step 8: Access the Ethercluster cluster
8.1. Use the following command to access the Ethercluster cluster:
kubectl exec -it my-besu-deployment-pod -- /bin/bash
Replace my-besu-deployment-pod
with the name of your Hyperledger Besu pod.
8.2. Once you are inside the pod, use the following command to access the Ethercluster node:
besu attach http://my-ethercluster-deployment-node-service:8546
Replace my-ethercluster-deployment-node-service
with the name of your Ethercluster node service.
That's it! You have successfully built an Ethercluster using Hyperledger Besu, Kubernetes K3s, and local bare metal.
etccooperative.github.io
medium.com
medium.com