apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "jackett.fullname" . }} labels: {{- include "jackett.labels" . | nindent 4 }} spec: replicas: {{ .Values.replicaCount }} selector: matchLabels: {{- include "jackett.selectorLabels" . | nindent 6 }} template: metadata: labels: {{- include "jackett.selectorLabels" . | nindent 8 }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} env: - name: TZ value: {{ .Values.env.TZ | quote }} - name: PUID value: {{ .Values.securityContext.PUID | quote }} - name: PGID value: {{ .Values.securityContext.PGID | quote }} - name: AUTO_UPDATE value: {{ .Values.env.AUTO_UPDATE | quote }} ports: - name: http containerPort: {{ .Values.service.port }} protocol: TCP volumeMounts: - name: config mountPath: {{ .Values.persistence.mountPath }} livenessProbe: httpGet: path: / port: http readinessProbe: httpGet: path: / port: http resources: {{- toYaml .Values.resources | nindent 12 }} volumes: - name: config {{- if .Values.persistence.enabled }} persistentVolumeClaim: claimName: {{ include "jackett.fullname" . }}-config {{- else }} emptyDir: {} {{- end }} {{- with .Values.nodeSelector }} nodeSelector: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.affinity }} affinity: {{- toYaml . | nindent 8 }} {{- end }} {{- with .Values.tolerations }} tolerations: {{- toYaml . | nindent 8 }} {{- end }}