storj

by mjpitz

Helm chartv22.4.5App latestMITVerified publisher

Easily add a Storj S3 gateway to any Deployment, DaemonSet, or StatefulSet using a sidecar. This chart optionally deploys the required configuration and provides template functions that render the necessary sidecar containers.

About this chart

storj

Easily add a Storj S3 gateway to any Deployment, DaemonSet, or StatefulSet using a sidecar. This chart optionally deploys the required configuration and provides template functions that render the necessary sidecar containers.

Usage

First, add the dependency to your Chart.yaml file. Like any dependency, you're going to need to run helm dep up to fetch the dependency before installing.

# ...
dependencies:
  # ...
  - name: storj
    version: 22.4.5
    repository: https://mya.sh
    condition: storj.enabled

Then, you'll need to add the appropriate block to your Deployment, StatefulSet, or DaemonSet.

{{- $storjConfig := dict "Chart" (dict "Name" "storj") "Values" .Values.storj "Release" .Release -}}
# ...
spec:
  # ...
  template:
    # ...
    spec:
      # ...
      containers:
        # ...
        {{- if .Values.storj.enabled }}
        {{- include "storj.container" $storjConfig | nindent 8 }}
        {{- end }}

Finally, we'll need to add some additional configuration to the values.yaml file.

# ...
storj:
  enabled: true

That should be it.

Maintainers

NameEmailUrl
Mya Pitzerusehttps://mya.sh

Source Code

Values

KeyTypeDefaultDescription
config.accessGrantstring""The access grant providing access to the Storj network.
config.accessKeyIdstring""An access key id that's shared between the gateway and S3 client.
config.secretAccessKeystring""A secret key that's shared between the gateway and S3 client.
externalConfig.secretRef.accessGrantNamestring"storj-access-grant"The secret key name identifying the Storj access grant.
externalConfig.secretRef.accessKeyNamestring"s3-access-key"The secret key name identifying the S3 access key id.
externalConfig.secretRef.namestring""Specify the name of the secret containing the raw configuration. The keys in the secret must match the other properties in this configuration.
externalConfig.secretRef.secretKeyNamestring"s3-secret-key"The secret key name identifying the S3 secret key.
fullnameOverridestring""Override the full name of the release.
image.pullPolicystring"IfNotPresent"The pull policy to use for the gateway image.
image.repositorystring"storjlabs/gateway"The repository hosting the storjlabs/gateway image.
image.tagstring"latest"Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]Specify the secret containing the registry credentials.
nameOverridestring""Override the name of the release.
resourcesobject{}Specify the resources for the pod.
securityContextobject{}Specify the security context for the storj container.

Deploy storj with OpenTenant

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