You will need to first setup a GCP project and provision your account. The following script will walk you through the steps, where PROJECTNAME contains no spaces or special characters and will be the name of your GCP project:
./setup-gcloud.sh PROJECTNAME
Upon succesful completion, PROJECTNAME.env
will contain your google cloud configuration:
- PROJECT_ID
- GOOGLE_PAYER_SECRET_PATH
- EXTERNAL_IP
- SERVICE_ACCOUNT_EMAIL
- SERVICE_ACCOUNT_BASE64
You will need to manually add the following variables to PROJECTNAME.env
- RPC_URL
- ORACLE_KEY
- CLUSTER [devnet/mainnet-beta]
Next we will need to provision the TLS certificate to view the Grafana dashboard
./setup-grafana.sh PROJECTNAME DOMAIN EMAIL
Follow the instructions then add the following outputted variables to the env file:
- GRAFANA_HOSTNAME (your domain/subdomain that will host your grafana dashboard)
- GRAFANA_ADMIN_PASSWORD (can be set to any string used to login to the admin account)
- GRAFANA_TLS_CRT
- GRAFANA_TLS_KEY
Using the same PROJECTNAME
as above, run the following command to build the helm charts for your deployment:
./build-helm.sh PROJECTNAME
Then deploy your helm charts to your GCP cluster:
./deploy-helm.sh PROJECTNAME