use nvidia for ml and use smb for pictures storage
This commit is contained in:
@@ -14,6 +14,9 @@ spec:
|
||||
labels:
|
||||
app: immich-app
|
||||
spec:
|
||||
runtimeClassName: nvidia
|
||||
nodeSelector:
|
||||
hardware-type: nvidia
|
||||
initContainers:
|
||||
- name: wait-for-redis
|
||||
image: busybox
|
||||
@@ -37,7 +40,7 @@ spec:
|
||||
done
|
||||
containers:
|
||||
- name: immich-server
|
||||
image: ghcr.io/immich-app/immich-server:v1.131.3
|
||||
image: ghcr.io/immich-app/immich-server:v1.132.3
|
||||
ports:
|
||||
- containerPort: 2283
|
||||
env:
|
||||
@@ -60,20 +63,27 @@ spec:
|
||||
- mountPath: /usr/src/app/upload
|
||||
name: pictures
|
||||
- name: immich-machine-learning
|
||||
image: ghcr.io/immich-app/immich-machine-learning:v1.131.2
|
||||
image: ghcr.io/immich-app/immich-machine-learning:v1.132.3-cuda
|
||||
ports:
|
||||
- containerPort: 3003
|
||||
env:
|
||||
- name: REDIS_HOSTNAME
|
||||
value: "immich-redis-service"
|
||||
- name: NVIDIA_VISIBLE_DEVICES
|
||||
value: "all"
|
||||
- name: MACHINE_LEARNING_DEVICE_IDS
|
||||
value: "0"
|
||||
volumeMounts:
|
||||
- mountPath: /cache
|
||||
name: model-cache
|
||||
- name: model-cache
|
||||
mountPath: /cache
|
||||
resources:
|
||||
limits:
|
||||
nvidia.com/gpu: 1
|
||||
volumes:
|
||||
- name: pictures
|
||||
nfs:
|
||||
server: 10.0.0.123
|
||||
path: /pictures
|
||||
persistentVolumeClaim:
|
||||
claimName: immich-pictures-pvc
|
||||
- name: model-cache
|
||||
persistentVolumeClaim:
|
||||
claimName: longhorn-immich-cache
|
||||
|
||||
|
||||
Reference in New Issue
Block a user