94 lines
2.4 KiB
YAML
94 lines
2.4 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: immich-ml
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: immich-ml
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: immich-ml
|
|
spec:
|
|
containers:
|
|
- name: immich-ml
|
|
image: ghcr.io/immich-app/immich-machine-learning:v1.134.0
|
|
volumeMounts:
|
|
- name: model-cache
|
|
mountPath: /cache
|
|
- name: config
|
|
mountPath: /config/immich-config.yaml
|
|
- name: dev-dri
|
|
mountPath: /dev/dri
|
|
env:
|
|
- name: DB_HOSTNAME
|
|
value: "immich-rw.cloudnativepg.svc.cluster.local"
|
|
- name: DB_DATABASE_NAME
|
|
value: "immich"
|
|
- name: DB_USERNAME
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: username
|
|
name: postgres-credentials
|
|
- name: DB_PASSWORD
|
|
valueFrom:
|
|
secretKeyRef:
|
|
key: password
|
|
name: postgres-credentials
|
|
- name: REDIS_HOSTNAME
|
|
value: redis
|
|
- name: REDIS_PORT
|
|
value: "6379"
|
|
- name: IMMICH_PORT
|
|
value: "3003"
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 3003
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 3003
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 3
|
|
startupProbe:
|
|
httpGet:
|
|
path: /ping
|
|
port: 3003
|
|
initialDelaySeconds: 0
|
|
periodSeconds: 10
|
|
timeoutSeconds: 1
|
|
failureThreshold: 30
|
|
securityContext:
|
|
privileged: true
|
|
resources:
|
|
limits:
|
|
memory: "8Gi"
|
|
cpu: "2"
|
|
requests:
|
|
memory: "2Gi"
|
|
cpu: "500m"
|
|
volumes:
|
|
- name: model-cache
|
|
emptyDir:
|
|
sizeLimit: 10Gi
|
|
- name: config
|
|
configMap:
|
|
name: immich-config
|
|
- name: dev-dri
|
|
hostPath:
|
|
path: /dev/dri
|
|
affinity:
|
|
nodeAffinity:
|
|
requiredDuringSchedulingIgnoredDuringExecution:
|
|
nodeSelectorTerms:
|
|
- matchExpressions:
|
|
- key: extensions.talos.dev/i915
|
|
operator: Exists |