43 lines
970 B
YAML
43 lines
970 B
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: immich-ml
|
|
namespace: media
|
|
spec:
|
|
strategy:
|
|
type: Recreate
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: immich-ml
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: immich-ml
|
|
spec:
|
|
containers:
|
|
- name: immich-machine-learning
|
|
image: ghcr.io/immich-app/immich-machine-learning:v2.1.0-openvino
|
|
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:
|
|
gpu.intel.com/i915: "1"
|
|
limits:
|
|
gpu.intel.com/i915: "1"
|
|
volumes:
|
|
- name: model-cache
|
|
persistentVolumeClaim:
|
|
claimName: immich-cache-longhorn
|