added transmission
This commit is contained in:
1 parent
50aa3725bc
commit
c58b305b2d
10 files changed
+119
-2
No files matched your search
+1
-1
@@ -6,5 +6,5 @@ metadata:
|
||||
data:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
TZ: America/Toronto
|
||||
TZ: {{ .Values.global.timezone }}
|
||||
ADVERTISE_IP: "https://plex.{{ .Values.global.domain }}"
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: transmission-envs
|
||||
data:
|
||||
PUID: "1000"
|
||||
PGID: "1000"
|
||||
TZ: {{ .Values.global.timezone }}
|
||||
ADVERTISE_IP: "https://plex.{{ .Values.global.domain }}"
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,55 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: transmission
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: transmission
|
||||
replicas: 1
|
||||
revisionHistoryLimit: 2
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: transmission
|
||||
spec:
|
||||
containers:
|
||||
- name: transmission
|
||||
image: "{{ .Values.transmission.repo }}:{{ .Values.transmission.tag }}"
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: transmission-envs
|
||||
- secretRef:
|
||||
name: transmission-envs
|
||||
resources:
|
||||
limits:
|
||||
cpu: 2
|
||||
memory: "2Gi"
|
||||
requests:
|
||||
cpu: 1
|
||||
memory: "500M"
|
||||
ports:
|
||||
- containerPort: 9091
|
||||
- containerPort: 51413
|
||||
- containerPort: 51413
|
||||
protocol: UDP
|
||||
volumeMounts:
|
||||
- name: transmission-config
|
||||
mountPath: /config
|
||||
- name: torrents
|
||||
mountPath: /downloads
|
||||
subPath: "downloads"
|
||||
- name: torrents
|
||||
mountPath: /watch
|
||||
subPath: "torrents"
|
||||
|
||||
volumes:
|
||||
- name: transmission-config
|
||||
persistentVolumeClaim:
|
||||
claimName: transmission-config
|
||||
- name: torrents
|
||||
nfs:
|
||||
server: "{{ $.Values.global.nfs.server }}"
|
||||
path: "{{ .Values.nfs.shares.torrents }}"
|
||||
readOnly: false
|
||||
+7
-1
@@ -6,10 +6,13 @@ metadata:
|
||||
- kubernetes.io/pvc-protection
|
||||
name: plex-config
|
||||
spec:
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
limits:
|
||||
storage: 100Gi
|
||||
---
|
||||
apiVersion: v1
|
||||
@@ -19,8 +22,11 @@ metadata:
|
||||
- kubernetes.io/pvc-protection
|
||||
name: plex-transcode
|
||||
spec:
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 8Gi
|
||||
storage: 10Gi
|
||||
limits:
|
||||
storage: 100Gi
|
||||
@@ -0,0 +1,16 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: PersistentVolumeClaim
|
||||
metadata:
|
||||
finalizers:
|
||||
- kubernetes.io/pvc-protection
|
||||
name: transmission-config
|
||||
spec:
|
||||
persistentVolumeReclaimPolicy: Retain
|
||||
accessModes:
|
||||
- ReadWriteOnce
|
||||
resources:
|
||||
requests:
|
||||
storage: 10Gi
|
||||
limits:
|
||||
storage: 100Gi
|
||||
@@ -0,0 +1,11 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Secret
|
||||
type: Opaque
|
||||
metadata:
|
||||
name: transmission-envs
|
||||
annotations:
|
||||
secret-generator.v1.mittwald.de/autogenerate: "PASS"
|
||||
data:
|
||||
USER: {{ "torrent" | b64enc }}
|
||||
|
||||
File renamed without changes.
@@ -0,0 +1,17 @@
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
metadata:
|
||||
name: transmission
|
||||
spec:
|
||||
selector:
|
||||
app: plex
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 9091
|
||||
targetPort: 9091
|
||||
- port: 51413
|
||||
targetPort: 51413
|
||||
- port: 51413
|
||||
targetPort: 51413
|
||||
protocol: UDP
|
||||
@@ -30,3 +30,4 @@ global:
|
||||
deployment: ""
|
||||
nfs:
|
||||
server: "changme"
|
||||
timezone: America/Toronto
|
||||
Reference in new issue
Block a user