Update k8s/apps/immich/deployments.yaml
All checks were successful
Check with kubeconform / lint (push) Successful in 9s

This commit is contained in:
ab
2025-05-12 15:52:11 +00:00
parent c56cad53b3
commit 9bedb4c519

View File

@ -61,7 +61,7 @@ kind: Deployment
metadata: metadata:
name: immich-machine-learning name: immich-machine-learning
spec: spec:
replicas: 1 replicas: 2
selector: selector:
matchLabels: matchLabels:
app: immich-ml app: immich-ml
@ -70,6 +70,23 @@ spec:
labels: labels:
app: immich-ml app: immich-ml
spec: spec:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: kubernetes.io/hostname
operator: In
values:
- nas.homenet
- home.homenet
topologySpreadConstraints:
- maxSkew: 1
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
@ -80,11 +97,10 @@ spec:
volumeMounts: volumeMounts:
- mountPath: /cache - mountPath: /cache
name: model-cache name: model-cache
nodeSelector:
kubernetes.io/hostname: nas.homenet
volumes: volumes:
- name: model-cache - name: model-cache
emptyDir: {} emptyDir: {}
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment