request-node

by Request Network

Helm chartv0.10.1App 0.53.0Verified publisher

A Helm chart for Request Node

About this chart

Request Node Helm Chart

This chart allows you to deploy a Request Network node, with it's own IPFS server, on a Kubernetes cluster.

StatefulSet Details

  • https://kubernetes.io/docs/concepts/abstractions/controllers/statefulsets/

StatefulSet Caveats

  • https://kubernetes.io/docs/concepts/abstractions/controllers/statefulsets/#limitations

Chart Details

This chart implements a full Request Node with it's own IPFS server using Kubernetes StatefulSets.

Installing the Chart

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

helm repo add request https://request-charts.storage.googleapis.com
helm repo update
$ helm install --name my-release request/request-node

Configuration

The following table lists the configurable parameters of the Request Node chart and their default values.

ParameterDescriptionDefault
nodeEnv.mnemonicThe mnemonic of a wallet for gas feesRequired value
nodeEnv.web3ProviderUrlThe URL of the Web3 provider (infura for instance)Required value
nodeEnv.networkIdThe ethereum network (0 custom, 1 mainnet, 4 rinkeby)Required value
nodeEnv.logLevelThe node log level (ERROR, WARN, INFO or DEBUG)DEBUG
replicaCountThe amount of replicas to run1
nodeImage.imageThe docker image for the Request Noderequestnetwork/request-node
nodeImage.tagThe version tag for the Request Node image0.5.5
nodeImage.pullPolicyRequest Node image pull policyAlways
ipfs.image.imageThe docker image for the dedicated IPFS serverrequestnetwork/request-ipfs
ipfs.image.tagThe version tag for the dedicated IPFS server imagev0.4.23
ipfs.image.pullPolicyDedicated IPFS server image pull policyAlways
ipfs.swarm.portPort to access the IPFS swarm4001
ipfs.swarm.externalIPSwarm address to announce to the network (optional). Usually should be the same as ipfs.swarm.service.loadBalancerIPnull
ipfs.swarm.service.enabledWhether to enable the load service to access to IPFS swarmtrue
ipfs.swarm.service.typeThe service type to access the IPFS swarmLoadBalancer
ipfs.swarm.service.loadBalancerIPStatic IP address used by the load balancer (optional)null
ipfs.identity.peerIdThe IPFS node PeerID (optional)null
ipfs.identity.privateKeyThe IPFS node Private Key (optional)null
ipfs.extraEnvsAdditional environment variables to pass down to the IPFS node (optional){}

Specify each parameter using the --set key=value[,key=value] argument to helm install.

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

$ helm install --name my-release -f values.yaml request/request-node

Tip: You can use the default values.yaml

Cleanup orphaned Persistent Volumes

Deleting a StatefulSet will not delete associated Persistent Volumes.

Do the following after deleting the chart release to clean up orphaned Persistent Volumes.

$ kubectl delete pvc -l release=my-release

Scaling

Scaling should be managed by helm upgrade, which is the recommended way. Example:

$ helm upgrade --set cluster.replicas=4 my-release request/request-node

Deploy request-node with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has request-node 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 chartrequest-node is pinned at v0.10.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