# Requirements

Source: https://dropshelf.ai/docs/self-host/install/requirements

The DNS records, certificate, database, object store, identity provider, cluster and sizing a dropshelf instance needs before you install it.

This page lists what a dropshelf instance needs before you install it, for operators planning an
install with Helm or on a single host. Each item links to the page that sets it up.

## Summary [#summary]

Every instance needs the following:

| Requirement | Detail | Set up in |
| --- | --- | --- |
| DNS | Two records: the dashboard name and a wildcard for drops | [Domains and TLS](/docs/self-host/configure/domains-and-tls) |
| TLS certificate | One wildcard certificate covering both names | [Domains and TLS](/docs/self-host/configure/domains-and-tls) |
| Database | Postgres 14 or later | [Configuration: database](/docs/reference/configuration#database) |
| Object store | One S3-compatible bucket, Google Cloud Storage bucket or Azure Blob container | [Object storage](/docs/self-host/configure/storage) |
| Identity provider | An OIDC client | [Identity provider](/docs/self-host/configure/identity-provider) |
| Runtime | Kubernetes 1.29 or later with an ingress controller, or a single host with Docker | [Install with Helm](/docs/self-host/install/helm), [Run on a single host](/docs/self-host/install/single-host) |

## DNS [#dns]

Create two records pointing at whatever fronts dropshelf, usually your ingress controller's load
balancer:

- `drop.example.com` for the dashboard and API.
- `*.drop.example.com` for the drops. Every drop is a subdomain, such as `lunch-votes.drop.example.com`.

A wildcard matches one DNS label, and a drop's name is always one label.

## TLS certificate [#tls-certificate]

One wildcard certificate covers `drop.example.com` and `*.drop.example.com`. The chart reads it from
the Secret `dropshelf-tls`. There are two ways to get it, and you choose one:

- **cert-manager** with an issuer that solves DNS-01. The chart requests the certificate itself. A
  wildcard cannot be issued through HTTP-01.
- **Your own certificate**, from your PKI or your load balancer, in a Secret you create and name in
  the chart's values.

[Domains and TLS](/docs/self-host/configure/domains-and-tls) covers both.

## Database [#database]

dropshelf keeps every record except the deployed files in Postgres 14 or later. It has no embedded
database, and a configuration without `database.url` refuses to start. Create an empty database and a
user that owns it. dropshelf creates its tables on first start.

## Object store [#object-store]

An instance uses exactly one object store for the files of every drop:

- An S3 bucket, or MinIO or another S3-compatible store.
- A Google Cloud Storage bucket.
- An Azure Blob container.

dropshelf never creates the bucket or container. Create it yourself and give the instance read and
write access. On S3 the readiness check runs `HeadBucket`, so the credentials need `s3:ListBucket`.
[Object storage](/docs/self-host/configure/storage) has the permissions for each driver.

A fourth driver, `fs`, keeps files on the host's disk. It is for one replica on a
[single host](/docs/self-host/install/single-host) only.

## Identity provider [#identity-provider]

dropshelf signs people in through OIDC, so you need a client at your identity provider, such as
Auth0, Entra ID or Dex. Register `https://drop.example.com/auth/callback` as its redirect URI. Note
the issuer URL, the client ID and the client secret. You also need the email address of at least one
person who becomes an admin. [Identity provider](/docs/self-host/configure/identity-provider) covers
the setup.

## Kubernetes [#kubernetes]

The Helm chart needs:

- Kubernetes 1.29 or later.
- An ingress controller. The chart adds body-size and timeout annotations for ingress-nginx; with
  another controller, you size those yourself.
- HTTP/2 at the ingress when you turn on [drop data](/docs/self-host/configure/features), because
  each open tab holds one event stream per synced collection.
- cert-manager with a DNS-01 issuer, if you let the chart request the certificate.

The image runs on `linux/amd64` and `linux/arm64`.

## Network access [#network-access]

The server pods reach these addresses:

- Your identity provider's issuer, at startup and at every sign-in.
- Postgres and the object store.
- `claude.ai` and `chatgpt.com` over HTTPS, to read the metadata of the agent clients that sign in
  through OAuth. The server honours `HTTPS_PROXY`. To avoid this traffic, see
  [Configuration: auth](/docs/reference/configuration#auth).

## Sizing [#sizing]

The chart's defaults, per server pod unless the row says otherwise, are these:

| Resource | Default | Value |
| --- | --- | --- |
| Replicas | 2 | `replicaCount` |
| CPU | 250m requested, no limit | `resources` |
| Memory | 256Mi requested, 512Mi limit | `resources` |
| Spool volume | `emptyDir` at `/tmp/dropshelf`, 2Gi | `volumes.spool.sizeLimit` |
| Cache volume | `emptyDir` at `/var/cache/dropshelf`, 10Gi | `volumes.cache.sizeLimit` |
| Ephemeral storage | 12Gi requested, the two volumes together | `resources` |

The spool holds uploads until they are stored. The cache holds files the pod serves, refilled from
the object store by use. The chart sets `cache.maxBytes` to 8GB, below the cache volume. Both volumes
are emptied at every startup and hold nothing durable. There is no CPU limit, so deploys are never
throttled.

For the full list, see [Helm chart values](/docs/reference/helm-values#pods-and-scheduling).
