Skip to Content
dropshelf

Helm chart values

Every value of the dropshelf Helm chart, with its type and default, and example values files for common installs.

The dropshelf chart installs the server on Kubernetes. This page lists every value it takes, and example values files for the installs most teams start from.

The chart is published at oci://ghcr.io/dropshelf/charts/dropshelf, at the same version as the image. It ships a values.schema.json, so helm install and helm upgrade refuse a misspelled key or a value of the wrong type before anything reaches the cluster.

The config value is the server's configuration file, rendered as it is. Its keys are in the configuration reference.

Example values files

Each file sets only what differs from the defaults. Combine them with several -f flags: a later file wins.

The values every install sets

Your two addresses, your bucket, your identity provider and the first admin. The chart's defaults cover the rest: two replicas, an Ingress, and a wildcard certificate from a cert-manager ClusterIssuer named letsencrypt-dns that solves DNS-01. Create the Secret dropshelf-secrets first, with DROPSHELF_DATABASE_URL, DROPSHELF_AUTH_OIDC_CLIENT_SECRET and DROPSHELF_AUTH_SESSION_SECRETS.

examples/minimal.yaml
# The values every install sets.
# Your two addresses, your bucket, your identity provider and the first admin. The chart's defaults
# cover the rest: two replicas, an Ingress, and a wildcard certificate from a cert-manager
# ClusterIssuer named letsencrypt-dns that solves DNS-01. Create the Secret dropshelf-secrets first,
# with DROPSHELF_DATABASE_URL, DROPSHELF_AUTH_OIDC_CLIENT_SECRET and DROPSHELF_AUTH_SESSION_SECRETS.
config:
  server:
    baseDomain: drop.example.com
    publicBaseURL: https://drop.example.com
    trustedProxies: ["10.0.0.0/8"]
  storage:
    driver: s3
    s3:
      bucket: example-dropshelf
      region: eu-north-1
  auth:
    provider: oidc
    oidc:
      issuer: https://example.eu.auth0.com/
      clientId: <client-id>
    admins:
      emails: [admin@example.com]
helm install dropshelf oci://ghcr.io/dropshelf/charts/dropshelf -n dropshelf -f minimal.yaml

Azure Kubernetes Service with Workload Identity

The pods reach the Blob container as a user-assigned managed identity with a federated credential for the ServiceAccount dropshelf. Give the identity Storage Blob Data Contributor on the container.

examples/aks.yaml
# Azure Kubernetes Service with Workload Identity.
# The pods reach the Blob container as a user-assigned managed identity with a federated credential
# for the ServiceAccount dropshelf. Give the identity Storage Blob Data Contributor on the container.
serviceAccount:
  annotations:
    azure.workload.identity/client-id: <client-id>
podLabels:
  azure.workload.identity/use: "true"
config:
  storage:
    driver: azure
    azure:
      account: exampledropshelf
      container: drops
helm install dropshelf oci://ghcr.io/dropshelf/charts/dropshelf -n dropshelf -f aks.yaml

Every optional feature on

Drop data with live sync, file uploads from a drop's visitors, and connectors to company databases. Add DROPSHELF_CONNECTORS_SECRETS to the Secret, at least 32 bytes, and let the pods reach the databases admins connect. Uploads wait on the spool volume before they are stored, so it grows with them.

examples/all-features.yaml
# Every optional feature on.
# Drop data with live sync, file uploads from a drop's visitors, and connectors to company
# databases. Add DROPSHELF_CONNECTORS_SECRETS to the Secret, at least 32 bytes, and let the pods reach
# the databases admins connect. Uploads wait on the spool volume before they are stored, so it grows
# with them.
config:
  platform:
    db:
      enabled: true
    assets:
      enabled: true
      maxFileBytes: 25MB
      maxBytesPerDrop: 500MB
  connectors:
    enabled: true
volumes:
  spool:
    sizeLimit: 4Gi
resources:
  requests:
    cpu: 250m
    memory: 256Mi
    ephemeral-storage: 14Gi
  limits:
    memory: 512Mi
helm install dropshelf oci://ghcr.io/dropshelf/charts/dropshelf -n dropshelf -f all-features.yaml

Amazon EKS with IRSA

The pods reach the S3 bucket as an IAM role, through IAM Roles for Service Accounts, so no access key is stored. The role needs s3:ListBucket on the bucket and s3:GetObject, s3:PutObject and s3:DeleteObject on its objects.

examples/aws-eks.yaml
# Amazon EKS with IRSA.
# The pods reach the S3 bucket as an IAM role, through IAM Roles for Service Accounts, so no access
# key is stored. The role needs s3:ListBucket on the bucket and s3:GetObject, s3:PutObject and
# s3:DeleteObject on its objects.
serviceAccount:
  annotations:
    eks.amazonaws.com/role-arn: arn:aws:iam::<account-id>:role/dropshelf
config:
  storage:
    driver: s3
    s3:
      bucket: example-dropshelf
      region: eu-north-1
helm install dropshelf oci://ghcr.io/dropshelf/charts/dropshelf -n dropshelf -f aws-eks.yaml

Your own wildcard certificate

Use a certificate from your own PKI instead of cert-manager. The Secret must be of type kubernetes.io/tls and cover drop.example.com and *.drop.example.com. With existingSecret set, the chart renders no Certificate.

examples/existing-certificate.yaml
# Your own wildcard certificate.
# Use a certificate from your own PKI instead of cert-manager. The Secret must be of type
# kubernetes.io/tls and cover drop.example.com and *.drop.example.com. With existingSecret set, the
# chart renders no Certificate.
ingress:
  className: nginx
  tls:
    existingSecret: drop-example-com-wildcard
helm install dropshelf oci://ghcr.io/dropshelf/charts/dropshelf -n dropshelf -f existing-certificate.yaml

Google Kubernetes Engine with Workload Identity

The pods reach the Cloud Storage bucket as a Google service account. Allow the Kubernetes ServiceAccount dropshelf to act as it (roles/iam.workloadIdentityUser), and grant it roles/storage.objectAdmin on the bucket.

examples/gke.yaml
# Google Kubernetes Engine with Workload Identity.
# The pods reach the Cloud Storage bucket as a Google service account. Allow the Kubernetes
# ServiceAccount dropshelf to act as it (roles/iam.workloadIdentityUser), and grant it
# roles/storage.objectAdmin on the bucket.
serviceAccount:
  annotations:
    iam.gke.io/gcp-service-account: dropshelf@<project>.iam.gserviceaccount.com
config:
  storage:
    driver: gcs
    gcs:
      bucket: example-dropshelf
helm install dropshelf oci://ghcr.io/dropshelf/charts/dropshelf -n dropshelf -f gke.yaml

A larger production install

Migrations run once per upgrade as a hook Job instead of in every starting pod, an autoscaler replaces the fixed replica count, and prometheus-operator scrapes the metrics. Pods spread across zones, so losing one zone keeps the service up.

examples/production.yaml
# A larger production install.
# Migrations run once per upgrade as a hook Job instead of in every starting pod, an autoscaler
# replaces the fixed replica count, and prometheus-operator scrapes the metrics. Pods spread across
# zones, so losing one zone keeps the service up.
migrations:
  mode: job
autoscaling:
  enabled: true
  minReplicas: 3
  maxReplicas: 10
metrics:
  serviceMonitor:
    enabled: true
    labels:
      release: prometheus
topologySpreadConstraints:
  - maxSkew: 1
    topologyKey: topology.kubernetes.io/zone
    whenUnsatisfiable: ScheduleAnyway
    labelSelector:
      matchLabels:
        app.kubernetes.io/name: dropshelf
helm install dropshelf oci://ghcr.io/dropshelf/charts/dropshelf -n dropshelf -f production.yaml

image

ValueTypeDefaultDescription
image.repositorystringghcr.io/dropshelf/dropshelfThe container image, without a tag.
image.tagstringemptyThe image tag. Empty means the chart's appVersion, the release it was packaged with. Floating tags (latest, dev, edge, stable, main, master, nightly) are refused at render time.
image.digeststringemptyAn image digest, sha256:.... Pins harder than a tag and wins over it when set.
image.pullPolicystringIfNotPresentThe pull policy for the server, migration and demo containers.

Pods and scheduling

ValueTypeDefaultDescription
replicaCountinteger2How many server pods run, behind a RollingUpdate. Ignored when autoscaling is on.
podLabelsobjectemptyExtra labels on the pods. AKS Workload Identity needs azure.workload.identity/use: "true" here.
resourcesobjectbelowThe server container's requests and limits. Keep requests.ephemeral-storage at the sum of the two volumes size limits. Only memory is limited, so deploys are never CPU-throttled.
terminationGracePeriodSecondsinteger60Seconds Kubernetes waits after SIGTERM. Must exceed config.server.timeouts.shutdown, the time an in-flight deploy gets before it is cancelled.
nodeSelectorobjectemptyNode labels the pods must run on.
tolerationsarrayemptyTolerations for the pods.
affinityobjectemptyAffinity rules for the pods.
topologySpreadConstraintsarrayemptyTopology spread constraints for the pods.

The default of resources:

resources:
  limits:
    memory: 512Mi
  requests:
    cpu: 250m
    ephemeral-storage: 12Gi
    memory: 256Mi

config

ValueTypeDefaultDescription
configobjectbelowThe server's configuration file, rendered as it is into a ConfigMap as config.yaml. Every key is in the configuration reference. Secrets never go here: they come from secrets.existingSecret.

The default of config:

config:
  auth:
    admins:
      emails:
        - you@example.com
    oidc:
      assumeEmailVerified: false
      clientId: your-client-id
      issuer: https://your-tenant.eu.auth0.com/
      requireVerifiedEmail: true
    provider: oidc
  cache:
    maxBytes: 8GB
  database:
    autoMigrate: true
    driver: postgres
    url: ${DROPSHELF_DATABASE_URL}
  log:
    format: json
    level: info
  server:
    baseDomain: drop.example.com
    publicBaseURL: https://drop.example.com
    timeouts:
      shutdown: 50s
    trustedProxies:
      - 10.0.0.0/8
  storage:
    driver: s3
    s3:
      bucket: dropshelf
      region: eu-north-1

secrets

ValueTypeDefaultDescription
secrets.existingSecretstringdropshelf-secretsThe Secret, created outside the chart, whose every key becomes an environment variable: the database URL, the OIDC client secret, the session secrets and any other secret setting. Empty renders no envFrom. After rotating a value, run kubectl rollout restart deployment/dropshelf.

volumes

ValueTypeDefaultDescription
volumes.spool.sizeLimitstring2GiThe size limit of the spool emptyDir, server.spoolDir, where uploads wait until they are stored. Emptied at every startup.
volumes.cache.sizeLimitstring10GiThe size limit of the object cache emptyDir, cache.dir, refilled from the bucket by use. Keep it above config.cache.maxBytes.

ingress

ValueTypeDefaultDescription
ingress.enabledbooleantrueRender an Ingress for the dashboard address and the wildcard drop address.
ingress.classNamestringemptyThe IngressClass. nginx also sets the body size and timeouts from ingress.nginx.
ingress.annotationsobjectemptyAnnotations added to the Ingress. With className nginx, the proxy body size and timeout annotations come from ingress.nginx instead. cert-manager.io/cluster-issuer, cert-manager.io/issuer and kubernetes.io/tls-acme fail the render.
ingress.nginx.proxyBodySizestring110mThe largest request body nginx accepts. Must exceed config.deploy.maxZipBytes, 100 MiB by default. Applied only when className is nginx.
ingress.nginx.proxyReadTimeoutstring900Seconds nginx waits to read from the server. Must cover config.server.timeouts.upload, 15 minutes by default.
ingress.nginx.proxySendTimeoutstring900Seconds nginx waits to send to the server. Must cover config.server.timeouts.upload.
ingress.tls.certManager.enabledbooleantrueRender a cert-manager Certificate for the wildcard, requested through DNS-01, into the Secret dropshelf-tls.
ingress.tls.certManager.issuerRef.namestringletsencrypt-dnsThe issuer that signs the certificate. It must solve DNS-01: a wildcard cannot be issued through HTTP-01.
ingress.tls.certManager.issuerRef.kindstringClusterIssuerClusterIssuer or Issuer.
ingress.tls.existingSecretstringemptyA Secret holding your own wildcard certificate. Set, it wins over certManager.enabled and no Certificate is rendered.

serviceAccount

ValueTypeDefaultDescription
serviceAccount.createbooleantrueCreate the ServiceAccount the pods run as.
serviceAccount.annotationsobjectemptyAnnotations on the ServiceAccount, for the pods' cloud identity: eks.amazonaws.com/role-arn for IRSA, iam.gke.io/gcp-service-account for GKE Workload Identity, azure.workload.identity/client-id for AKS Workload Identity.

autoscaling

ValueTypeDefaultDescription
autoscaling.enabledbooleanfalseRender a HorizontalPodAutoscaler instead of a fixed replicaCount.
autoscaling.minReplicasinteger2The fewest pods the autoscaler keeps.
autoscaling.maxReplicasinteger6The most pods the autoscaler runs.
autoscaling.targetCPUUtilizationPercentageinteger70The average CPU use, in percent of the request, the autoscaler aims for. CPU is its only signal.

podDisruptionBudget

ValueTypeDefaultDescription
podDisruptionBudget.enabledbooleantrueRender a PodDisruptionBudget, so node drains keep a pod serving.
podDisruptionBudget.minAvailableinteger or string1Pods that must stay up during a voluntary disruption, as a count or a percentage.

metrics

ValueTypeDefaultDescription
metrics.serviceMonitor.enabledbooleanfalseRender a ServiceMonitor for prometheus-operator. It adds a metrics port to the Service. Without it, the pods' prometheus.io annotations serve a Prometheus that discovers pods itself.
metrics.serviceMonitor.labelsobjectemptyLabels on the ServiceMonitor, such as the one your Prometheus selects on.
metrics.serviceMonitor.intervalstring30sHow often Prometheus scrapes /metrics.

migrations

ValueTypeDefaultDescription
migrations.modestringstartupstartup: every replica migrates the database at startup, under an advisory lock. job: dropshelf-server migrate runs as a pre-install and pre-upgrade hook, and the servers do not migrate, so schema changes stay out of the serving path.

demo

ValueTypeDefaultDescription
demo.installbooleanfalseInstall two public demo drops, kept forever, on the first install: a welcome page and, with config.platform.db.enabled, a live all-hands Q&A board. Needs an object store, not fs.
demo.warehouseURLstringemptyA Postgres URL without its password, for the demo sales dashboard when config.connectors.enabled is true. The password is DROPSHELF_CONNECTOR_DEMO in secrets.existingSecret. Empty skips that demo.

Last updated .

On this page