excalidraw

by maarlo

Helm chartv0.1.0App 0.18.1Verified publisher

Virtual collaborative whiteboard with a hand-drawn feel

About this chart

Excalidraw Helm chart

Virtual collaborative whiteboard with a hand-drawn feel. Deploys the frontend (excalidraw/excalidraw) and the socket.io server (excalidraw/excalidraw-room) with no runtime internet dependency.

Helm Chart

Installation:

helm install excalidraw oci://ghcr.io/maarlo/helm-charts/excalidraw

Parameters

Global parameters

Parameters shared by every component of the chart.

NameDescriptionValue
global.imageRegistryGlobal container image registry. Overrides every *.image.registry. Set it to your internal registry (Harbor, Nexus...) for air-gapped clusters""
imagePullSecretsSecrets used to pull images from a private registry (list of {name: <secret>})[]
nameOverrideString to partially override the release name used in resource names""
fullnameOverrideString to fully override the resource names""

Excalidraw frontend (web) parameters

Static nginx serving the Excalidraw SPA. An initContainer patches the hardcoded collaboration URL before nginx starts.

NameDescriptionValue
web.replicaCountNumber of frontend replicas1
web.image.registryFrontend image registry"docker.io"
web.image.repositoryFrontend image repository"excalidraw/excalidraw"
web.image.tagFrontend image tag. Upstream only publishes latest, so pin by digest in production"latest"
web.image.digestFrontend image digest (e.g. sha256:abcd...). When set, it takes precedence over the tag""
web.image.pullPolicyFrontend image pull policy"IfNotPresent"
web.resources.requests.cpuFrontend CPU request"50m"
web.resources.requests.memoryFrontend memory request"64Mi"
web.resources.limits.memoryFrontend memory limit"256Mi"
web.podAnnotationsExtra annotations for the frontend pods{}
web.nodeSelectorNode labels for frontend pod assignment{}
web.tolerationsTolerations for frontend pod assignment[]
web.affinityAffinity for frontend pod assignment{}
web.podSecurityContextPod-level security context for the frontend pods{}
web.securityContext.allowPrivilegeEscalationDisallow privilege escalation in the frontend containersfalse
web.securityContext.seccompProfile.typeSeccomp profile type for the frontend containers"RuntimeDefault"

Collaboration server (room) parameters

excalidraw-room, the socket.io server that relays real-time collaboration messages.

NameDescriptionValue
room.replicaCountNumber of room server replicas. Rooms are kept in memory without a shared adapter, so only 0 or 1 is allowed1
room.portPort the room server listens on (exported to the container as PORT)3002
room.image.registryRoom image registry"docker.io"
room.image.repositoryRoom image repository"excalidraw/excalidraw-room"
room.image.tagRoom image tag. Upstream only publishes latest, so pin by digest in production"latest"
room.image.digestRoom image digest (e.g. sha256:abcd...). When set, it takes precedence over the tag""
room.image.pullPolicyRoom image pull policy"IfNotPresent"
room.resources.requests.cpuRoom CPU request"50m"
room.resources.requests.memoryRoom memory request"64Mi"
room.resources.limits.memoryRoom memory limit"256Mi"
room.envExtra environment variables for the room container[]
room.podAnnotationsExtra annotations for the room pods{}
room.nodeSelectorNode labels for room pod assignment{}
room.tolerationsTolerations for room pod assignment[]
room.affinityAffinity for room pod assignment{}
room.podSecurityContextPod-level security context for the room pods{}
room.securityContext.allowPrivilegeEscalationDisallow privilege escalation in the room containerfalse
room.securityContext.seccompProfile.typeSeccomp profile type for the room container"RuntimeDefault"

Collaboration URL patching parameters

The official frontend image hardcodes https://oss-collab.excalidraw.com and ignores runtime env vars (upstream issue excalidraw/excalidraw#5188). These parameters control the startup rewrite.

NameDescriptionValue
collab.wsServerUrlURL browsers use to reach the room server. Empty means derive it from the ingress (ingress.room.host, else ingress.web.host with path /socket.io)""
rewrite.extraExtra literal from/to string replacements applied to the static files after the mandatory collab rewrite. Use it to neutralise other external endpoints[]

Ingress parameters

HTTPS is required by browsers for live collaboration (WebCrypto needs a secure context).

NameDescriptionValue
ingress.enabledCreate an Ingress resourcetrue
ingress.classNameIngressClass name"traefik"
ingress.schemePublic scheme seen by browsers (http or https). Keep https even if TLS terminates at an external load balancer"https"
ingress.tlsEnable TLS on the Ingressfalse
ingress.annotationsIngress annotations (e.g. proxy timeouts for long-lived WebSocket connections on ingress-nginx){}
ingress.web.hostHostname serving the frontend (and the room server when ingress.room.host is empty)"draw.corp.internal"
ingress.web.tlsSecretNameTLS secret for the web host"excalidraw-tls"
ingress.room.hostDedicated hostname for the room server. Empty means same host as the frontend with path /socket.io (no CORS needed)""
ingress.room.tlsSecretNameTLS secret for the dedicated room host. Defaults to ingress.web.tlsSecretName""

Network policy parameters

Enforces the air gap: pods may only egress to DNS.

NameDescriptionValue
networkPolicy.enabledCreate NetworkPolicies for the frontend and room podsfalse
networkPolicy.dnsNamespaceSelectorLabels selecting the namespace running the cluster DNS (egress on port 53 is allowed to it){"kubernetes.io/metadata.name":"kube-system"}
networkPolicy.ingressFromAllowed ingress peers (e.g. the ingress controller namespace). Empty allows any source[]

Why the initContainer exists

The official frontend image has https://oss-collab.excalidraw.com compiled into its JS and ignores VITE_APP_WS_SERVER_URL at runtime (upstream issue excalidraw/excalidraw#5188). The chart therefore runs an initContainer that copies the static site to an emptyDir, rewrites that URL to your own collab endpoint, and nginx serves the patched copy. No custom image build is required. If the pattern is not found (upstream changed the bundle), the pod fails loudly instead of silently collaborating through the public server.

Routing modes

  • Single host (default): / -> frontend, /socket.io -> room. Same origin, no CORS.
  • Dedicated host: --set ingress.room.host=draw2gether.corp.internal.

HTTPS is mandatory: browsers only expose WebCrypto in secure contexts and collaboration encrypts with it. Terminate TLS at the ingress (ingress.tls=true) or at an external LB, and keep ingress.scheme=https in both cases.

Limitations (imp

Deploy excalidraw with OpenTenant

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