apiVersion: v1 kind: PersistentVolumeClaim metadata: name: qbittorrent-config labels: app: qbittorrent {{- include "media.labels" . | nindent 4 }} spec: accessModes: [ReadWriteOnce] storageClassName: {{ .Values.storageClass }} resources: requests: storage: {{ .Values.qbittorrent.configSize }} --- apiVersion: apps/v1 kind: Deployment metadata: name: qbittorrent labels: app: qbittorrent {{- include "media.labels" . | nindent 4 }} spec: replicas: 1 strategy: type: Recreate selector: matchLabels: app: qbittorrent template: metadata: labels: app: qbittorrent spec: containers: - name: qbittorrent image: {{ .Values.qbittorrent.image }} ports: - containerPort: {{ .Values.qbittorrent.webuiPort }} protocol: TCP - containerPort: 34034 protocol: TCP - containerPort: 34034 protocol: UDP env: {{- include "media.commonEnv" . | nindent 12 }} - name: WEBUI_PORTS value: "{{ .Values.qbittorrent.webuiPort }}/tcp" volumeMounts: - name: config mountPath: /config - name: data mountPath: /data volumes: - name: config persistentVolumeClaim: claimName: qbittorrent-config - name: data hostPath: path: {{ .Values.dogstore }}/sonarr/data type: DirectoryOrCreate --- apiVersion: v1 kind: Service metadata: name: qbittorrent labels: app: qbittorrent spec: selector: app: qbittorrent ports: - name: webui port: {{ .Values.qbittorrent.webuiPort }} targetPort: {{ .Values.qbittorrent.webuiPort }} - name: bt-tcp port: 34034 targetPort: 34034 protocol: TCP - name: bt-udp port: 34034 targetPort: 34034 protocol: UDP