chore(helm): switch from Deployment to StatefulSet (#1901)

Jellyseerr is not designed to support multiple concurrently running instances.
To ensure that only one instance can run at any given time we:

- Replace Deployment with StatefulSet: switch from running "at least N pods" to
  "at most N pods".
- Remove replicaCount value: default is 1, we do not want to support more.
This commit is contained in:
Sergii Bogomolov
2025-09-23 11:01:34 +02:00
committed by GitHub
parent 328517cc0a
commit 1518dc01e5
5 changed files with 30 additions and 18 deletions

View File

@@ -1,13 +1,11 @@
apiVersion: apps/v1
kind: Deployment
kind: StatefulSet
metadata:
name: {{ include "jellyseerr.fullname" . }}
labels:
{{- include "jellyseerr.labels" . | nindent 4 }}
spec:
replicas: {{ .Values.replicaCount }}
strategy:
type: {{ .Values.strategy.type }}
serviceName: {{ include "jellyseerr.fullname" . }}
selector:
matchLabels:
{{- include "jellyseerr.selectorLabels" . | nindent 6 }}