apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "overseerr.fullname" . }} labels: {{- include "overseerr.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} serviceName: {{ include "overseerr.fullname" . }} selector: matchLabels: {{- include "overseerr.selectorLabels" . | nindent 6 }} template: metadata: labels: {{- include "overseerr.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "overseerr.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: overseerr containerPort: {{ .Values.service.port }} protocol: TCP livenessProbe: httpGet: path: / port: {{ .Values.service.port }} readinessProbe: httpGet: path: / port: {{ .Values.service.port }} resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: - name: overseerr-config mountPath: /config volumes: - name: overseerr-config persistentVolumeClaim: claimName: {{ .Values.config.configPvc }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}