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