diff --git a/charts/immich/templates/immich-machine-learning.yaml b/charts/immich/templates/immich-machine-learning.yaml index 495c57d..8838ab9 100644 --- a/charts/immich/templates/immich-machine-learning.yaml +++ b/charts/immich/templates/immich-machine-learning.yaml @@ -7,6 +7,9 @@ metadata: {{- include "immich-machine-learning.labels" . | nindent 4 }} spec: replicas: {{ .Values.machineLearning.replicaCount }} + {{- if .Values.machineLearning.updateStrategy }} + strategy: {{- toYaml .Values.machineLearning.updateStrategy | nindent 4 }} + {{- end }} selector: matchLabels: {{- include "immich-machine-learning.selectorLabels" . | nindent 6 }} diff --git a/charts/immich/templates/immich-server.yaml b/charts/immich/templates/immich-server.yaml index 3afb2f4..556f182 100644 --- a/charts/immich/templates/immich-server.yaml +++ b/charts/immich/templates/immich-server.yaml @@ -8,6 +8,9 @@ spec: {{- if not .Values.server.autoscaling.enabled }} replicas: {{ .Values.server.replicaCount }} {{- end }} + {{- if .Values.server.updateStrategy }} + strategy: {{- toYaml .Values.server.updateStrategy | nindent 4 }} + {{- end }} selector: matchLabels: {{- include "immich-server.selectorLabels" . | nindent 6 }} diff --git a/charts/immich/values.yaml b/charts/immich/values.yaml index a1da0de..eb4178a 100644 --- a/charts/immich/values.yaml +++ b/charts/immich/values.yaml @@ -35,6 +35,10 @@ common: server: # This will set the replicaset count. Ignored if autoscaling is enabled. replicaCount: 1 + # This section configures the update strategy for the deployment. + updateStrategy: + type: RollingUpdate + rollingUpdate: {} # This section is for setting up autoscaling more information can be found here: https://kubernetes.io/docs/concepts/workloads/autoscaling/ autoscaling: enabled: false @@ -128,7 +132,11 @@ machineLearning: sizeLimit: 10Gi replicaCount: 1 - + # This section configures the update strategy for the deployment. + updateStrategy: + type: RollingUpdate + rollingUpdate: {} + image: repository: ghcr.io/immich-app/immich-machine-learning pullPolicy: IfNotPresent