diff --git a/apps/immich/kustomization.yaml b/apps/immich/kustomization.yaml index 0bc9d6f..dc34f1a 100644 --- a/apps/immich/kustomization.yaml +++ b/apps/immich/kustomization.yaml @@ -1,14 +1,16 @@ apiVersion: kustomize.config.k8s.io/v1beta1 kind: Kustomization resources: -- namespace.yaml -- ingress.yaml -- pvc.yaml -- postgres.yaml -- postgres.sealedsecret.yaml + - namespace.yaml + - ingress.yaml + - pvc.yaml + - postgres.yaml + - postgres.sealedsecret.yaml + namespace: immich + helmCharts: - name: immich releaseName: immich @@ -22,3 +24,10 @@ images: newTag: v1.108.0 - name: ghcr.io/immich-app/immich-server newTag: v1.108.0 + + +patches: + - path: patch-redis-pvc.yaml + target: + kind: StatefulSet + name: immich-redis-master \ No newline at end of file diff --git a/apps/immich/patch-redis-pvc.yaml b/apps/immich/patch-redis-pvc.yaml new file mode 100644 index 0000000..40c9bdd --- /dev/null +++ b/apps/immich/patch-redis-pvc.yaml @@ -0,0 +1,17 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: immich-redis-master +spec: + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: redis-data + spec: + storageClassName: nfs-client + accessModes: + - ReadWriteMany + resources: + requests: + storage: 2Gi \ No newline at end of file diff --git a/apps/immich/values.yaml b/apps/immich/values.yaml index 8a4f04a..b66304a 100644 --- a/apps/immich/values.yaml +++ b/apps/immich/values.yaml @@ -5,7 +5,7 @@ # These entries are shared between all the Immich components env: - # REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}' + REDIS_HOSTNAME: '{{ printf "%s-redis-master" .Release.Name }}' DB_HOSTNAME: "immich-postgres-rw" DB_USERNAME: valueFrom: @@ -42,7 +42,7 @@ postgresql: enabled: false redis: - enabled: false + enabled: true architecture: standalone auth: enabled: false