Update k8s/apps/immich/deployments.yaml

This commit is contained in:
ab
2025-05-12 16:30:32 +00:00
parent 2f8b47a5e5
commit 664870f8c4

View File

@ -62,7 +62,7 @@ kind: Deployment
metadata: metadata:
name: immich-machine-learning name: immich-machine-learning
spec: spec:
replicas: 15 replicas: 5
selector: selector:
matchLabels: matchLabels:
app: immich-ml app: immich-ml
@ -71,15 +71,16 @@ spec:
labels: labels:
app: immich-ml app: immich-ml
spec: spec:
topologySpreadConstraints:
- maxSkew: 2
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: immich-ml
affinity: affinity:
nodeAffinity: nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- nas.homenet
- home.homenet
preferredDuringSchedulingIgnoredDuringExecution: preferredDuringSchedulingIgnoredDuringExecution:
- weight: 30 - weight: 30
preference: preference:
@ -95,6 +96,13 @@ spec:
operator: In operator: In
values: values:
- home.homenet - home.homenet
topologySpreadConstraints:
- maxSkew: 2
topologyKey: kubernetes.io/hostname
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
app: immich-ml
containers: containers:
- name: immich-ml - name: immich-ml
image: ghcr.io/immich-app/immich-machine-learning:release image: ghcr.io/immich-app/immich-machine-learning:release
@ -105,10 +113,10 @@ spec:
resources: resources:
requests: requests:
cpu: "0.5" cpu: "0.5"
memory: "1Gi"
limits:
cpu: "1"
memory: "2Gi" memory: "2Gi"
limits:
cpu: "2"
memory: "4Gi"
volumeMounts: volumeMounts:
- mountPath: /cache - mountPath: /cache
name: model-cache name: model-cache