apiVersion: apps/v1 kind: StatefulSet metadata: name: {{ include "tautulli.fullname" . }} labels: {{- include "tautulli.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} serviceName: {{ include "tautulli.fullname" . }} selector: matchLabels: {{- include "tautulli.selectorLabels" . | nindent 6 }} template: metadata: labels: {{- include "tautulli.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "tautulli.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}-{{ .Values.config.alpine_version }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - name: tautulli containerPort: 8181 protocol: TCP livenessProbe: httpGet: path: / port: 8181 readinessProbe: httpGet: path: / port: 8181 resources: {{- toYaml .Values.resources | nindent 12 }} volumeMounts: - name: tautulli-config mountPath: /config volumes: - name: tautulli-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 }}