immich

by HelmForge

Helm chartv1.2.18App 3.1.0Apache-2.0Verified publisher

Immich photo and video management with HelmForge PostgreSQL, Redis-compatible cache, and machine learning

About this chart

Immich Helm Chart

Immich is a self-hosted photo and video management platform. This HelmForge chart deploys Immich server, machine learning, a Redis/Valkey-compatible cache, and the upstream VectorChord PostgreSQL image recommended by Immich.

Features

  • Official Immich images pinned to v3.1.0.
  • Internal PostgreSQL uses ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0.
  • Internal cache uses the HelmForge Redis chart aliased as valkey for Redis/Valkey-compatible protocol support.
  • Machine learning service enabled by default with a model cache volume.
  • External database and Redis/Valkey support with External Secrets Operator hooks.
  • Gateway API, Ingress, dual-stack Service support, HPA, PDB, NetworkPolicy, schema, and Helm tests.
  • Chart-wide common annotations with resource-specific override precedence.
  • Production, external-service, and networking guides with runnable examples.

Install

helm install immich oci://ghcr.io/helmforgedev/helm/immich

Configuration

The chart keeps application listeners, Service exposure, persistence, and dependency selection as separate controls. Review the complete contract in values.yaml before production use.

AreaPrimary valuesDefault behavior
Serverserver.*, service.*, resourcesOne server pod listening on port 2283 behind a ClusterIP Service
Machine learningmachineLearning.*One pod with a persistent 10Gi model cache
Uploadsserver.persistence.*Persistent 50Gi ReadWriteOnce volume
PostgreSQLpostgresql.*, database.external.*Bundled PostgreSQL 2.2.0 with the Immich VectorChord image
Cachevalkey.*Bundled Redis 3.2.1 aliased as valkey
Exposureingress.*, gateway.*Disabled until explicitly configured
CredentialsexternalSecrets.*, existing Secret fieldsGenerated dependency credentials unless an external source is selected
MetadatacommonLabels, commonAnnotationsShared metadata on rendered resources, including extraObjects; resource-specific annotations win

The schema validates every documented default and rejects invalid listener ports, replica counts, persistence sizes, and enum values during helm lint, helm template, install, and upgrade.

Inspect the complete effective contract before each upgrade and keep the values file under version control:

helm show values oci://ghcr.io/helmforgedev/helm/immich > immich-defaults.yaml
helm upgrade --install immich oci://ghcr.io/helmforgedev/helm/immich \
  --namespace immich --create-namespace --values immich-values.yaml

Compare new defaults with the previous release before reusing production values. In particular, verify PostgreSQL extension compatibility, Secret key names, persistence access modes, and the selected Redis topology. Helm owns the Kubernetes resources, while database migrations, backup validation, and certificate lifecycle remain operator responsibilities.

Persistence

Persistent storage is enabled by default for uploads, PostgreSQL, internal cache, and machine-learning model cache. For local smoke tests, disable persistence with the k3d values file.

Upgrading to Immich 3

Immich 3 removes support for pgvecto.rs. Check the active database extension and effective DB_VECTOR_EXTENSION setting (vectorchord or pgvector). If the database still uses pgvecto.rs, complete the upstream migration before upgrading. Back up the database and uploads first; external PostgreSQL migrations must be performed outside Helm. The server performs its application database migrations during startup, and this chart's bundled PostgreSQL image already uses VectorChord.

See the Immich 3 migration guide and VectorChord upgrade instructions. External databases should follow the standalone PostgreSQL migration guide.

Examples

Extra Server Volumes

Use extraVolumes and extraVolumeMounts to mount additional ConfigMaps, Secrets, or PVCs into the Immich server container. This is useful for custom configuration files and read-only external media locations.

extraVolumes:
  - name: external-media
    persistentVolumeClaim:
      claimName: external-media
  - name: immich-config
    configMap:
      name: immich-config

extraVolumeMounts:
  - name: external-media
    mountPath: /mnt/external-media
    readOnly: true
  - name: immich-config
    mountPath: /config/immich
    readOnly: true

External Database

postgresql:
  enabled: false
database:
  external:
    host: postgres.example.com
    database: immich
    username: immich
    existingSecret: immich-db
    existingSecretPasswordKey: database-password

Gateway API

gateway:
  enabled: true
  parentRefs:
    - name: public
      namespace: gateway-system
  hostnames:
    - immich.example.com

Ingress

ingress:
  enabled: true
  ingressClassName: traefik
  hosts:
    - host: immich.example.com
      paths:
        - path: /
          pathType: Prefix

NetworkPolicy

networkPolicy:
  enabled: true
  extraEgress:
    - to:
        - ipBlock:
            cidr: 10.0.0.0/8
      ports:
        - protocol: TCP
          port: 443

Architecture

Clients reach the named http Service port, which targets the configurable Immich listener. The server writes media to the uploads volume, metadata to PostgreSQL, queue and cache data to Redis/Valkey, and inference requests to the separate machine-learning Service. See DESIGN.md for the Mermaid topology, dependency modes, trust boundaries, and known limitations.

Security

  • Pods use the RuntimeDefault seccomp profile and drop all Linux capabilities.
  • Privilege escalation is disabled and ServiceAccount token automounting is off by default.
  • Database and cache passwords are read from Kubernetes Secrets; plaintext values are intended only for local evaluation.
  • NetworkPolicy is opt-in. Its default rule permits namespace ingress and all egress for dependency and external API compatibility; restrict both lists to match the cluster threat model.
  • TLS terminates at an operator-managed Ingress or Gateway. The chart does not provision certificates or controllers.

Troubleshooting

SymptomCheckResolution
Server waits for PostgreSQLkubectl logs deploy/<release>-immich -c wait-for-postgresqlVerify the selected host, port, Secret, and required database extensions.
Server waits for cachekubectl logs deploy/<release>-immich -c wait-for-valkeyVerify the Valkey Service name or external cache endpoint.
Scaling is rejected during renderingUpload or model-cache access modesUse ReadWriteMany storage before adding replicas.
Machine-learning probes failkubectl logs deploy/<release>-immich-machine-learningConfirm model-cache capacity and resource limits.
Ingress returns no endpointService endpoints and route classConfirm the controller, hostname, and service.targetPort.

Documentation

  • Design
  • Production guide
  • External services
  • Networking
  • Examples

Local Validation

helm dependency build charts/immich
helm lint --strict charts/immich
helm unittest --with-subchart=false charts/immich
helm template immich charts/immich -f charts/immich/ci/ci-values.yaml

Security Scan: immich

FrameworkScore
MITRE + NSA + SOC288.61111%

Security posture acceptable.

Deploy immich with OpenTenant

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