Update k8s/apps/immich/deployments.yaml
All checks were successful
Check with kubeconform / lint (push) Successful in 11s
All checks were successful
Check with kubeconform / lint (push) Successful in 11s
This commit is contained in:
@ -55,13 +55,14 @@ spec:
|
||||
hostPath:
|
||||
path: /etc/localtime
|
||||
type: File
|
||||
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: immich-machine-learning
|
||||
spec:
|
||||
replicas: 20
|
||||
replicas: 15
|
||||
selector:
|
||||
matchLabels:
|
||||
app: immich-ml
|
||||
@ -70,23 +71,30 @@ spec:
|
||||
labels:
|
||||
app: immich-ml
|
||||
spec:
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
requiredDuringSchedulingIgnoredDuringExecution:
|
||||
nodeSelectorTerms:
|
||||
- matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- nas.homenet
|
||||
- home.homenet
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
- maxSkew: 2
|
||||
topologyKey: kubernetes.io/hostname
|
||||
whenUnsatisfiable: DoNotSchedule
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app: immich-ml
|
||||
affinity:
|
||||
nodeAffinity:
|
||||
preferredDuringSchedulingIgnoredDuringExecution:
|
||||
- weight: 30
|
||||
preference:
|
||||
matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- nas.homenet
|
||||
- weight: 70
|
||||
preference:
|
||||
matchExpressions:
|
||||
- key: kubernetes.io/hostname
|
||||
operator: In
|
||||
values:
|
||||
- home.homenet
|
||||
containers:
|
||||
- name: immich-ml
|
||||
image: ghcr.io/immich-app/immich-machine-learning:release
|
||||
@ -94,6 +102,13 @@ spec:
|
||||
env:
|
||||
- name: TZ
|
||||
value: Asia/Nicosia
|
||||
resources:
|
||||
requests:
|
||||
cpu: "0.5"
|
||||
memory: "1Gi"
|
||||
limits:
|
||||
cpu: "1"
|
||||
memory: "2Gi"
|
||||
volumeMounts:
|
||||
- mountPath: /cache
|
||||
name: model-cache
|
||||
|
Reference in New Issue
Block a user