request-ipfs

by Request Network

Helm chartv0.8.0App v0.4.23Verified publisher

A Helm chart for a dedicated Request IPFS node

About this chart

Request IPFS Helm Chart

This chart allows you to deploy a dedicated Request IPFS node, 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 dedicated Request 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-ipfs

Configuration

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

ParameterDescriptionDefault
replicaCountThe amount of replicas to run1
image.imageThe docker image for the dedicated IPFS noderequestnetwork/request-ipfs
image.tagThe version tag for the dedicated IPFS node imagev0.4.23
image.pullPolicyDedicated IPFS node image pull policyAlways
swarm.portPort to access the IPFS swarm4001
swarm.externalIPSwarm address to announce to the network (optional). Usually should be the same as swarm.service.loadBalancerIPnull
swarm.service.enabledWhether to enable the load service to access to IPFS swarmtrue
swarm.service.typeThe service type to access the IPFS swarmLoadBalancer
swarm.service.loadBalancerIPStatic IP address used by the load balancer (optional)null
identity.peerIdThe IPFS node PeerID (optional)null
identity.privateKeyThe IPFS node Private Key (optional)null
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-ipfs

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-ipfs

Deploy request-ipfs with OpenTenant

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