diff --git a/charts/apps/torrents/templates/chart.yaml b/charts/apps/torrents/templates/chart.yaml index f075a12..a1d5fad 100644 --- a/charts/apps/torrents/templates/chart.yaml +++ b/charts/apps/torrents/templates/chart.yaml @@ -16,6 +16,20 @@ spec: envFrom: - secretRef: name: vpn-credentials + volumes: + - name: "torrents" + nfs: + server: tnas1.lab.internal + path: /mnt/EightTerra/DownloadedTorrents + - name: "config" + persistentVolumeClaim: + claimName: "transmission-config" + transmission: + volumeMounts: + - name: torrents + mountPath: /torrents + - name: config + mountPath: /config destination: namespace: {{ .Release.Namespace }} server: https://kubernetes.default.svc diff --git a/charts/apps/torrents/templates/pv-config.yaml b/charts/apps/torrents/templates/pv-config.yaml new file mode 100644 index 0000000..8655896 --- /dev/null +++ b/charts/apps/torrents/templates/pv-config.yaml @@ -0,0 +1,12 @@ +--- +kind: PersistentVolumeClaim +apiVersion: v1 +metadata: + name: transmission-config +spec: + accessModes: + - "ReadWriteOnce" + resources: + requests: + storage: "100Mi" + storageClassName: {{ .Values.global.nfs.storageClassName }} \ No newline at end of file