This project helps up setting a chainlink XDAI node in a kubernetes cluster in Google Cloud Platform
How to Run A Fullnode on XDAI FM Chain
Running Chainlink Nodes on Kubernetes and the Google Cloud Platform
Color | Hex |
---|---|
Setup k8 cluster | k8-cluster-gcp |
Setup Postgres DB | postgres-terraform |
Helm setup for the chainlink node | helm |
We are in the process of pulling in prometheus and grafana setups via IaC
Install Gcloud CLI before starting
wget https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-sdk-363.0.0-darwin-arm.tar.gz
tar -xvzf google-cloud-sdk-363.0.0-darwin-arm.tar.gz
cd google-cloud-sdk
./install.sh
Install kubectl in Gcloud CLI
gcloud components install kubectl
Install helm ith Homebrew
brew install helm
[Add helm repo] (helm repo add external-secrets https://charts.external-secrets.io)
[Install the chart] (helm install external-secrets external-secrets/external-secrets)
All the sensitive data, like API_KEY, API_PASSWORD, DATABASE_URL, FLAGS_CONTRACT_ADDRESS, LINK_CONTRACT_ADDRESS are stored in GCP's secret manager.
To run this project, you will need to add the following environment variables
CHAINLINK_TLS_PORT
ETH_URL
ROOT
SECURE_COOKIES
MINIMUM_CONTRACT_PAYMENT_LINK_JUELS
ALLOW_ORIGINS
ETH_CHAIN_ID
ETH_SECONDARY_URLS
DEFAULT_HTTP_ALLOW_UNRESTRICTED_NETWORK_ACCESS
DATABASE_URL
LINK_CONTRACT_ADDRESS
FLAGS_CONTRACT_ADDRESS
API
PASSWORD
To deploy this project make sure you have terraform installed
cd k8-cluster-gcp
terraform init
terraform plan
terraform apply --auto-approve
Changes need to be done to the terraform.vars file for customization needs
cd postgres-terraform
terraform init
terraform plan
terraform apply --auto-approve
Changes need to be done to the terraform.vars file for customization needs
To deploy this project make sure you have helm
installed
cd ./helm/charts
helm install XDAI-FM .
helm list ```This will show the helm deployed```
kubectl get all