Service (and Docker) definitions (via cloud-init
) for Geth clusters on GCP. All services run as Docker containers. Provides simple healthcheck image (geth-healthcheck
) and an example Caddyfile
demonstrating a reverse proxy router/load-balancer.
Currently available endpoints (TLS required for all endpoints):
- HTTPS:
https://ethnet.zaidan.io/mainnet
- WSS:
wss://ethnet.zaidan.io/ws/mainnet
- HTTPS:
https://ethnet.zaidan.io/ropsten
- WSS:
wss://ethnet.zaidan.io/ws/ropsten
- HTTPS:
https://ethnet.zaidan.io/kovan
- WSS:
wss://ethnet.zaidan.io/ws/kovan
You can use the cloud-init
definitions provided to quickly launch mainnet or ropsten geth
nodes. You will need to configure services to provided RPC access via a VPN.
gcloud compute \
--project ${PROJECT_ID} \
instances create ${INSTANCE_NAME} \
--image IMAGE_NAME \
--metadata-from-file user-data=cloud-init-mainnet.yaml \
--zone ${ZONE_ID} \
--machine-type ${INSTANCE_TYPE}
You can also use a pre-defined template used in the zaidan-eth-net
project.
gcloud compute \
--project zaidan-eth-net \
instances create ${INSTANCE_NAME} \
--source-instance-template {ropsten-geth-template | mainnet-geth-template}
See the docs for more details.
Build (and deploy) a new healthcheck image to gcr.io
with the following command. Requires authentication via Google Cloud SDK.
yarn publish:health_check
You can build the geth-healthcheck
image for use locally as well. The image will be tagged according to the config provided in package.json
.
yarn build:health_check