Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Helm chart values

Every value of the chart at oci://ghcr.io/pranavajk1/charts/drusite, from deploy/helm/drusite/values.yaml. CI checks this page against that file: a value added to the chart and not explained here fails the build. Kubernetes with Helm shows them in use.

The server

ValueDefaultWhat it does
image.repositoryghcr.io/pranavajk1/drusite-serverThe server’s image.
image.tag""The image tag. Empty means the chart’s appVersion, which is the release the chart came with.
image.digest""A digest (sha256:…) to pin the image to, added after the tag. Recommended in production.
image.pullPolicyIfNotPresentThe pod’s image pull policy.
replicaCount1How many server pods. The server keeps no state of its own, so more than one can run; each opens up to [database] max_connections to PostgreSQL.
configa minimal configThe server’s config file, TOML, mounted at /etc/drusite/drusite.toml. Any key from the configuration reference. Keep secrets out of it: use *_file keys that read from secret. Changing it rolls the pods.
secret.name""A Secret you create outside the chart, whose keys are mounted as files under /run/secrets/drusite/. The default config reads database-url, s3-secret-access-key and master-key from it.
env[]More environment variables for the server container, as a list of {name, value} or valueFrom. DRUSITE__SECTION__KEY overrides the config; OTEL_* configures telemetry.
envFrom[]Whole ConfigMaps or Secrets as environment variables.
resources.requests.cpu50mThe server’s CPU request.
resources.requests.memory64MiThe server’s memory request.
resources.limits.memory512MiThe server’s memory limit.
podAnnotations{}Annotations on the server’s pods.
podLabels{}Labels on the server’s pods.
nodeSelector{}The server pods’ node selector.
tolerations[]The server pods’ tolerations.
affinity{}The server pods’ affinity.

The chart always sets these on the server container, so don’t set them in config: DRUSITE_CONFIG, DRUSITE__SERVER__LISTEN (0.0.0.0:8080), DRUSITE__WEB__ENABLED (from web.enabled) and, with publish.enabled, DRUSITE__PUBLISH__LISTEN and DRUSITE__PUBLISH__PUBLIC_URL. Its probes are /healthz (startup and liveness) and /readyz (readiness). The pod runs as user 65532 with a read-only root filesystem and no capabilities.

Reaching it

ValueDefaultWhat it does
service.typeClusterIPThe Service’s type.
service.port8080The Service’s port for the app, the API and sync.
ingress.enabledfalseMake an Ingress for the server.
ingress.className""Its ingress class.
ingress.annotations{}Its annotations: a body size limit for attachments, WebSocket timeouts, a cert-manager issuer. Reverse proxies says what the server needs.
ingress.hostnotes.example.comThe host it routes. It should be public_url’s.
ingress.tls[]Its TLS section, as in any Ingress: [{hosts: [notes.example.com], secretName: notes-tls}].
web.enabledtrueServe the web app at public_url. Off, the server serves no app at /.

Publish to web on a host of its own

ValueDefaultWhat it does
publish.enabledfalseServe published pages on a listener of their own, which serves nothing else. Adds a public port to the pod and the Service.
publish.hostpages.example.comThe published pages’ host. The chart sets [publish] public_url to https:// and this.
publish.port8443The port that listener uses, in the pod and on the Service.
publish.ingress.enabledfalseMake a second Ingress, for publish.host alone, to the public port.
publish.ingress.className""Its ingress class: say, an internet-facing one while the app’s Ingress stays internal.
publish.ingress.annotations{}Its annotations.
publish.ingress.tls[]Its TLS section.

An agent device

The chart can also run an agent device, which serves MCP for end-to-end encrypted workspaces. It’s one person’s: they add it in the app first.

ValueDefaultWhat it does
agentDevice.enabledfalseRun an agent device beside the server: a Deployment, a PersistentVolumeClaim and a Service.
agentDevice.image.repositoryghcr.io/pranavajk1/drusite-agentIts image.
agentDevice.image.tag""Its tag; empty means the chart’s appVersion.
agentDevice.image.digest""A digest to pin it to.
agentDevice.image.pullPolicyIfNotPresentIts pull policy.
agentDevice.addresshttps://agents.example.comWhere agents reach it (DRUSITE_AGENT_ADDRESS). Its MCP endpoint is <address>/mcp.
agentDevice.serverhttps://notes.example.comThe Drusite server it belongs to, usually public_url (DRUSITE_AGENT_SERVER).
agentDevice.secret.name""A Secret you create, with store-key (64 hex digits, the key of its encrypted stores) and, for the first start only, enrollment-code (from Settings → Agents).
agentDevice.persistence.size1GiIts volume: an encrypted copy of what it was given.
agentDevice.persistence.storageClass""The volume’s storage class; empty means the cluster’s default.
agentDevice.port8790The port it listens on, and its Service’s.
agentDevice.ingress.enabledfalseMake an Ingress for agentDevice.address’s host.
agentDevice.ingress.className""Its ingress class.
agentDevice.ingress.annotations{}Its annotations.
agentDevice.ingress.tls[]Its TLS section.
agentDevice.resources.requests.cpu20mIts CPU request.
agentDevice.resources.requests.memory64MiIts memory request.
agentDevice.resources.limits.memory256MiIts memory limit.