sbv2-solana/oracles/helm-deployment
Conner Gallagher a09a20b5b7 refactored documentation
- updated IDL and API docs
- refactored doc pages to be centered around resource
- each resource gets its own top level heading with implementation details and examples
wip


idl updates


fixed permissions


idl cleanup


wip


oracle arch


wip


wip


wip


wip


fixed metrics command


wip


fixed README paths


fixed broken links


cleanup


updated docker version


cleanup dev resource tables


cleanup


fixed broken pages
2022-05-24 16:18:05 -06:00
..
helm fixed programs test 2022-05-19 14:49:38 -06:00
scripts init 2022-05-17 10:42:04 -06:00
.gitignore init 2022-05-17 10:42:04 -06:00
README.md init 2022-05-17 10:42:04 -06:00
build-helm.sh refactored documentation 2022-05-24 16:18:05 -06:00
deploy-helm.sh init 2022-05-17 10:42:04 -06:00
setup-gcloud.sh init 2022-05-17 10:42:04 -06:00
setup-grafana.sh init 2022-05-17 10:42:04 -06:00

README.md

Switchboard Helm Manifest

Setup

Google Cloud

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

Switchboard

You will need to manually add the following variables to PROJECTNAME.env

  • RPC_URL
  • ORACLE_KEY
  • CLUSTER [devnet/mainnet-beta]

Grafana

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

Deploy

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