split immich-app and immich-ml
All checks were successful
Renovate / renovate (push) Successful in 4m59s
All checks were successful
Renovate / renovate (push) Successful in 4m59s
This commit is contained in:
43
cluster/apps/immich/immich-ml.yml
Normal file
43
cluster/apps/immich/immich-ml.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: immich-ml
|
||||||
|
namespace: default
|
||||||
|
spec:
|
||||||
|
strategy:
|
||||||
|
type: Recreate
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: immich-ml
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: immich-ml
|
||||||
|
spec:
|
||||||
|
runtimeClassName: nvidia
|
||||||
|
containers:
|
||||||
|
- name: immich-machine-learning
|
||||||
|
image: ghcr.io/immich-app/immich-machine-learning:v1.139.2-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:
|
||||||
|
- name: model-cache
|
||||||
|
mountPath: /cache
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
nvidia.com/gpu: "1"
|
||||||
|
limits:
|
||||||
|
nvidia.com/gpu: "1"
|
||||||
|
volumes:
|
||||||
|
- name: model-cache
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: immich-cache-ceph
|
||||||
@@ -21,7 +21,7 @@ metadata:
|
|||||||
spec:
|
spec:
|
||||||
type: LoadBalancer
|
type: LoadBalancer
|
||||||
selector:
|
selector:
|
||||||
app: immich-app
|
app: immich-ml
|
||||||
ports:
|
ports:
|
||||||
- port: 3333
|
- port: 3333
|
||||||
targetPort: 3003
|
targetPort: 3003
|
||||||
|
|||||||
@@ -16,7 +16,6 @@ spec:
|
|||||||
labels:
|
labels:
|
||||||
app: immich-app
|
app: immich-app
|
||||||
spec:
|
spec:
|
||||||
runtimeClassName: nvidia
|
|
||||||
initContainers:
|
initContainers:
|
||||||
- name: wait-for-redis
|
- name: wait-for-redis
|
||||||
image: busybox
|
image: busybox
|
||||||
@@ -62,29 +61,7 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /usr/src/app/upload
|
- mountPath: /usr/src/app/upload
|
||||||
name: pictures
|
name: pictures
|
||||||
- name: immich-machine-learning
|
|
||||||
image: ghcr.io/immich-app/immich-machine-learning:v1.139.2-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:
|
|
||||||
- name: model-cache
|
|
||||||
mountPath: /cache
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
nvidia.com/gpu: 1
|
|
||||||
limits:
|
|
||||||
nvidia.com/gpu: 1
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: pictures
|
- name: pictures
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: immich-pictures-pvc
|
claimName: immich-pictures-pvc
|
||||||
- name: model-cache
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: immich-cache-ceph
|
|
||||||
|
|||||||
Reference in New Issue
Block a user