From f0fa0bf564c5ed8e3365ec0fd21af5c82ae0e76d Mon Sep 17 00:00:00 2001 From: Ariel Sosnovsky Date: Wed, 22 Nov 2023 16:09:59 -0500 Subject: [PATCH] using recreate --- k8s/apps/photos/templates/immich/_heplers.yaml | 5 +++++ k8s/apps/photos/values.yaml | 2 ++ 2 files changed, 7 insertions(+) diff --git a/k8s/apps/photos/templates/immich/_heplers.yaml b/k8s/apps/photos/templates/immich/_heplers.yaml index bbb13c4..f2f7d43 100644 --- a/k8s/apps/photos/templates/immich/_heplers.yaml +++ b/k8s/apps/photos/templates/immich/_heplers.yaml @@ -38,11 +38,16 @@ metadata: spec: revisionHistoryLimit: 2 replicas: {{ .replicas | int }} +{{ if .strategy }} + strategy: + {{ .strategy | toYaml | nindent 8 }} +{{ else }} strategy: type: RollingUpdate rollingUpdate: maxSurge: 2 maxUnavailable: 0 +{{ end }} selector: matchLabels: homelab/name: immich diff --git a/k8s/apps/photos/values.yaml b/k8s/apps/photos/values.yaml index 94975bd..e3612b8 100644 --- a/k8s/apps/photos/values.yaml +++ b/k8s/apps/photos/values.yaml @@ -97,6 +97,8 @@ immich: timeoutSeconds: 1 typesense: replicas: 1 + strategy: + type: Recreate port: 8108 image: docker.io/typesense/typesense version: 0.24.0