Add Kubernetes configurations for Immich deployment, including database, machine learning, services, and secrets

This commit is contained in:
2025-10-15 06:44:11 +05:30
parent 5c582f74ed
commit ee02130120
6 changed files with 280 additions and 0 deletions

View File

@@ -0,0 +1,42 @@
---
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.0.1-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