oracle

by joaquinito2051

Helm chartv3.3.1App v4.0.4

The StakeWise application for submitting off-chain data to smart contracts.

About this chart

Oracle Helm Chart

Kubernetes Helm chart for deploying oracle - the entity which is responsible for reading StakeWise pool validators data from beacon chain and submitting it to the Oracles smart contract.

TL;DR;

$ helm repo add stakewise https://charts.stakewise.io
$ helm install my-release --set settings.web3Endpoint="ws://eth1-node.chain.svc.cluster.local:8546" --set settings.beaconChainRpcEndpoint="eth2-beacon.chain.svc.cluster.local:4000" stakewise/oracle

Introduction

Can be used to deploy StakeWise oracles on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.14+
  • Helm 3

Installing the Chart

To install the chart with the release name my-release:

$ helm repo add stakewise https://charts.stakewise.io
$ helm install my-release --set settings.awsAccessKeyID="XXXXXXXX" --set settings.awsSecretAccessKey="XXXXXXXX" stakewise/oracle

The command deploys oracle on the Kubernetes cluster in the default configuration. The configuration section lists various ways to override default configuration during deployment.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the my-release deployment:

$ helm delete my-release

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

See values.yaml for configuration notes. Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

$ helm install my-release stakewise/oracle --set settings.awsAccessKeyID="XXXXXXXX" --set settings.awsSecretAccessKey="XXXXXXXX"

The above command specifies the web3 endpoint.

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install my-release stakewise/oracle -f values.yaml

Tip: You can override the default values.yaml

Deploy oracle with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has oracle on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartoracle is pinned at v3.3.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply