From 268ea5cf31680c7d590b1703b5dd5f42f6ec61cd Mon Sep 17 00:00:00 2001 From: Daniel Cosme Date: Tue, 5 May 2026 14:57:42 -0400 Subject: [PATCH] Add volume mounts for immich deployment --- apps/hydra/immich/immich-deployment.yaml | 6 ++++++ pkg/immich/immich.go | 11 +++++++++++ 2 files changed, 17 insertions(+) diff --git a/apps/hydra/immich/immich-deployment.yaml b/apps/hydra/immich/immich-deployment.yaml index c465f24..7a134b6 100644 --- a/apps/hydra/immich/immich-deployment.yaml +++ b/apps/hydra/immich/immich-deployment.yaml @@ -51,6 +51,12 @@ spec: ports: - containerPort: 2283 resources: {} + volumeMounts: + - mountPath: /data + name: upload + - mountPath: /etc/localtime + name: localtime + readOnly: true volumes: - name: upload persistentVolumeClaim: diff --git a/pkg/immich/immich.go b/pkg/immich/immich.go index 09f5e5e..7a9bfa0 100644 --- a/pkg/immich/immich.go +++ b/pkg/immich/immich.go @@ -99,6 +99,17 @@ func Deployment() apps.Deployment { Image: root.Immich.Image, Env: kube.NewEnvVarWithSecret(envMapping, secretMapping, Secret.Name), Ports: []core.ContainerPort{{ContainerPort: root.Immich.Port}}, + VolumeMounts: []core.VolumeMount{ + { + Name: uploadVol.Name, + MountPath: "/data", + }, + { + Name: localtimeVol.Name, + MountPath: "/etc/localtime", + ReadOnly: true, + }, + }, }, }, Volumes: []core.Volume{