ente-photos
by L4G
A Helm chart for Ente Photos - end-to-end encrypted photo storage and backup platform
About this chart
Ente Photos Helm Chart
A Helm chart for deploying Ente Photos - an end-to-end encrypted photo storage and backup platform.
Introduction
This chart deploys Ente Photos on a Kubernetes cluster using the Helm package manager. Ente is a privacy-focused, open-source alternative to Google Photos with end-to-end encryption.
Prerequisites
- Kubernetes 1.23+
- Helm 3.8+
- External PostgreSQL database (CloudNativePG, Zalando Operator, or managed PostgreSQL)
- S3-compatible object storage (AWS S3, MinIO, Wasabi, Backblaze B2, Scaleway, etc.)
Components
This chart deploys the following components:
| Component | Description | Default |
|---|---|---|
| Museum | Main API server (Go backend) | Enabled |
| Web Photos | Photos web application | Enabled |
| Web Auth | Authentication web application | Enabled |
| Web Accounts | Account management web application | Enabled |
| Web Cast | Chromecast support web application | Disabled |
| Web Share | Public sharing web application | Enabled |
Note: This chart requires an external PostgreSQL database. It does not deploy PostgreSQL.
Installing the Chart
Add the Helm repository:
helm repo add l4g https://l4gdev.github.io/helm-charts
helm repo update
Install the chart:
helm install ente-photos l4g/ente-photos \
--namespace ente-photos \
--create-namespace \
--values values.yaml
Configuration
Minimal Configuration
You need to configure both the database and S3 storage:
# Database (required)
externalDatabase:
host: "your-postgres-host"
port: 5432
database: "ente_db"
user: "ente"
password: "your-password"
# S3 Storage (required)
credentials:
s3:
primary:
key: "your-s3-access-key"
secret: "your-s3-secret-key"
endpoint: "https://s3.your-region.amazonaws.com"
region: "your-region"
bucket: "your-bucket-name"
CloudNativePG (CNPG) Example
Using CloudNativePG with existing secret:
externalDatabase:
host: "ente-db-rw.database.svc.cluster.local"
port: 5432
database: "ente_db"
user: "ente"
existingSecret:
enabled: true
secretName: "ente-db-app"
passwordKey: "password"
Ingress Configuration
Enable ingress for external access:
museum:
ingress:
enabled: true
className: nginx
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: api.ente.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: ente-api-tls
hosts:
- api.ente.example.com
web:
photos:
ingress:
enabled: true
className: nginx
hosts:
- host: photos.ente.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: ente-photos-tls
hosts:
- photos.ente.example.com
SMTP Configuration
Enable email notifications:
credentials:
smtp:
enabled: true
host: "smtp.example.com"
port: 587
username: "your-username"
password: "your-password"
from: "[email protected]"
Using Existing Secrets
For production, use existing secrets:
credentials:
existingSecret: "my-ente-credentials"
externalDatabase:
host: "your-postgres-host"
existingSecret:
enabled: true
secretName: "my-postgres-credentials"
passwordKey: "password"
The credentials secret should contain a credentials.yaml key with the Ente credentials format.
S3 Storage Providers
Ente supports any S3-compatible storage. Here are configurations for popular providers:
AWS S3
credentials:
s3:
primary:
key: "AKIAIOSFODNN7EXAMPLE"
secret: "wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY"
endpoint: "https://s3.eu-west-1.amazonaws.com"
region: "eu-west-1"
bucket: "my-ente-bucket"
Wasabi
credentials:
s3:
primary:
key: "your-wasabi-key"
secret: "your-wasabi-secret"
endpoint: "https://s3.eu-central-2.wasabisys.com"
region: "eu-central-2"
bucket: "my-ente-bucket"
Backblaze B2
credentials:
s3:
primary:
key: "your-b2-application-key-id"
secret: "your-b2-application-key"
endpoint: "https://s3.eu-central-003.backblazeb2.com"
region: "eu-central-003"
bucket: "my-ente-bucket"
Scaleway
credentials:
s3:
primary:
key: "your-scaleway-access-key"
secret: "your-scaleway-secret-key"
endpoint: "https://s3.fr-par.scw.cloud"
region: "fr-par"
bucket: "my-ente-bucket"
Web Frontends
The ghcr.io/ente-io/web image bundles every Ente frontend on a separate internal port.
The chart maps each web.<app> block to the right port; do not change containerPort unless you know what you are doing.
web.<app> | Internal port | Purpose |
|---|---|---|
photos | 3000 | Main photos web app |
accounts | 3001 | Account management |
albums | 3002 | Public album sharing — what museum.config.apps.publicAlbums must point at |
auth | 3003 | 2FA codes (Ente Auth) |
cast | 3004 | Chromecast |
share | 3005 | Public file/locker sharing (via Ente desktop/mobile clients) |
Public album sharing (issue #2)
When a user creates a public album link, the photos web app produces a URL like https://albums.example.com/?t=TOKEN.
That domain MUST route to the web.albums deployment (port 3002).
Pointing it at web.photos (the default photos app on port 3000) lands users on a login screen, which is what older deployments of this chart did.
Minimum config that makes album sharing work:
web:
photos:
ingress:
enabled: true
hosts: [{ host: photos.example.com, paths: [{ path: /, pathType: Prefix }] }]
tls: [{ secretName: photos-tls, hosts: [photos.example.com] }]
albums:
enabled: true
ingress:
enabled: true
hosts: [{ host: albums.example.com, paths: [{ path: /, pathType: Prefix }] }]
tls: [{ secretName: albums-tls, hosts: [albums.example.com] }]
museum.config.apps.publicAlbums is auto-derived from web.albums.ingress.hosts[0].host, so you do not need to set it manually unless your albums domain lives outside the cluster.
Custom CA for outbound TLS (issue #1)
When the museum talks to S3 or SMTP over TLS with a private CA (self-hosted MinIO, internal cert authority), drop the CA bundle into a Secret:
kubectl create secret generic ente-custom-ca --from-file=ca.crt=./my-ca.crt
…and enable it:
museum:
customCA:
enabled: true
existingSecret: ente-custom-ca
key: ca.crt
The chart mounts it at /etc/ssl/certs/custom-ca-bundle.crt and sets SSL_CERT_FILE to that path.
Go's crypto/x509 reads SSL_CERT_FILE automatically, so the museum will trust certs signed by this CA on subsequent S3/SMTP requests without an init container or update-ca-certificates rebuild.
Disabling Frontends
If you only need the API server (e.g., using mobile apps only):
web:
photos:
enabled: false
auth:
enabled: false
accounts:
enabled: false
albums:
enabled: false
share:
enabled: false
Custom Frontend Images
Override default images per frontend:
web:
photos:
image:
repository: my-registry/ente-photos
tag: "v1.0.0"
Monitoring
Prometheus metrics are enabled by default:
metrics:
enabled: true
port: 2112
serviceMonitor:
enabled: true
interval: 30s
Security Considerations
Production Checklist
- Use external secrets management - Don't store credentials in values.yaml
- Enable TLS - Configure ingress with TLS certificates
- Set resource limits - Define CPU/memory requests and limits
- Enable network policies - Restrict pod communication
- Use non-root containers - Configure security contexts
- Enable database SSL - Set
museum.config.db.sslmode: "require"
Security Contexts
museum:
securityContext:
runAsNonRoot: true
runAsUser: 65534
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop:
- ALL
podSecurityContext:
fsGroup: 65534
seccompProfile:
type: RuntimeDefault
Upgrading
From 0.x to 0.y
Check the CHANGELOG for breaking changes between versions.
Troubleshooting
Database Connection Issues
Check PostgreSQL connectivity:
kubectl exec -it deploy/ente-museum -- psql -h ente-postgresql -U ente -d ente_db
S3 Connection Issues
Verify S3 credentials and endpoint accessibility:
kubectl logs deploy/ente-museum | grep -i s3
Health Check Failures
Check museum server health:
kubectl exec -it deploy/ente-museum -- wget -qO- http://localhost:8080/health
Values
See values.yaml for the full list of configurable values.
License
This chart is licensed under the MIT License. Ente itself is licensed under AGPL-3.0.
Links
Deploy ente-photos with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has ente-photos 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartente-photos is pinned at v0.2.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- 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