@@ -5,18 +5,20 @@ tlsHostname: photos.example.com
55deployment :
66 env :
77 # Note - the documentation of environment variables for immich under docker
8- # is misleading. Do *not* use those variables under kubernetes, see the
9- # volume mounts below.
8+ # is misleading. (See https://docs.immich.app/guides/custom-locations/ .)
9+ # Do *not* use those variables under kubernetes, see the volume mounts
10+ # below.
1011 db_database_name : immich
1112 db_hostname : immich-postgres
1213 db_username : immich
13- # immich_config_file: /config/immich-config.yaml
14- immich_machine_learning_url : http://k8s00:3003
14+ immich_machine_learning_url : http://immich-ml:3003
1515 immich_watch_filesystem : " no"
16- # immich_workers_include: api
1716 redis_hostname : immich-valkey
1817 redis_port : 6379
1918 tz : UTC
19+
20+ # Add this if you want to configure via ConfigMap rather than database:
21+ # immich_config_file: /config/immich-config.yaml
2022 xenv :
2123 - name : DB_PASSWORD
2224 valueFrom :
@@ -31,7 +33,8 @@ deployment:
3133 # gid values for video, render
3234 supplementalGroups : [ 44, 891 ]
3335 securityContext :
34- # TODO define GPU access properly instead of granting excess permissions
36+ # GPU access requires privileges. The alternative is somewhat complicated,
37+ # see https://github.com/UntouchedWagons/K3S-Intel
3538 privileged : true
3639 resources :
3740 limits :
@@ -49,8 +52,8 @@ livenessProbe:
4952 httpGet :
5053 path : /api/server/ping
5154 port : 2283
52- # Override this with much larger value if "Reindexing clip_index " on startup
53- initialDelaySeconds : 120
55+ # Override this with much larger value if "Reindexing XXX_index " on startup
56+ initialDelaySeconds : 300
5457readinessProbe :
5558 httpGet :
5659 path : /api/server/ping
@@ -64,15 +67,17 @@ volumeMounts:
6467# Manually create the subdirectories you want on the NAS, and chown them
6568# to the immich user (default above is uid 1000). Here, it's assumed that
6669# four of the above directories will be subdirectories of an immich
67- # subdirectory on your NAS photo storage volume. Override the volumeMounts
68- # if you want a different layout than the one recommended here.
70+ # subdirectory of the primary external-library photo storage volume on your
71+ # NAS. Define the top-level NAS volume as an nfs-client PVC 'pictures' before
72+ # applying this helm chart. Override the volumeMounts if you want a different
73+ # layout than the one recommended here.
6974- name : ssd
7075 mountPath : /data
7176 subPath : html
7277- name : config
7378 mountPath : /config/immich-config.yaml
7479 subPath : immich-config.yaml
75- - name : dri
80+ - name : gpu
7681 mountPath : /dev/dri
7782- name : nas
7883 mountPath : /mnt/photos
@@ -107,11 +112,12 @@ volumes:
107112- name : config
108113 configMap :
109114 name : immich
110- - name : ssd
111- hostPath : { path: /var/lib/docker/k8s-volumes/immich }
112- - name : dri
115+ optional : true
116+ - name : gpu
113117 hostPath :
114118 path : /dev/dri
119+ - name : ssd
120+ hostPath : { path: /var/lib/docker/k8s-volumes/immich }
115121- name : nas
116122 persistentVolumeClaim :
117123 claimName : pictures
@@ -152,6 +158,7 @@ autoscaling:
152158
153159configmap :
154160 name : immich
161+ enabled : false
155162 data :
156163 immich-config.yaml : |
157164 # Add custom settings here
@@ -187,7 +194,6 @@ postgres:
187194 - name : immich-config
188195 configMap :
189196 name : immich
190- psqlTag : 17.7
191197 image :
192198 repository : ghcr.io/immich-app/postgres
193199 tag : 17-vectorchord0.5.3-pgvector0.8.1
197203 image :
198204 tag : v2.7.5
199205 env :
200- immich_log_level : debug
206+ immich_log_level : info
0 commit comments