all repos — infra @ 1bb34aa4c7199826b930b947074a0699b706c18b

infrastructure manifests and setup notes

apps/transmission/transmission.yaml (view raw)

 1kind: Deployment
 2apiVersion: apps/v1
 3metadata:
 4  name: transmission
 5  namespace: default
 6  labels:
 7    app: transmission
 8spec:
 9  replicas: 1
10  selector:
11    matchLabels:
12      app: transmission
13  template:
14    metadata:
15      name: transmission
16      namespace: default
17      labels:
18        app: transmission
19    spec:
20      containers:
21        - name: transmission
22          image: ghcr.io/linuxserver/transmission
23          ports:
24            - containerPort: 9091
25              protocol: TCP
26            - containerPort: 51413
27              protocol: TCP
28            - containerPort: 51413
29              protocol: UDP
30          volumeMounts:
31            - mountPath: /downloads
32              name: data
33              subPath: downloads
34            - mountPath: /config
35              name: data
36              subPath: config
37            - mountPath: /watch
38              name: data
39              subPath: watch
40          env:
41            - name: PUID
42              value: "1000"
43            - name: PGID
44              value: "1000"
45            - name: TZ
46              value: "Europe/Helsinki"
47      volumes:
48        - name: data
49          persistentVolumeClaim:
50            claimName: transmission-data
51---
52apiVersion: v1
53kind: PersistentVolumeClaim
54metadata:
55  name: transmission-data
56spec:
57  storageClassName: local-path
58  accessModes:
59    - ReadWriteOnce
60  resources:
61    requests:
62      storage: 10Gi
63---
64kind: Service
65apiVersion: v1
66metadata:
67  name: transmission
68  namespace: default
69spec:
70  type: ClusterIP
71  selector:
72    app: transmission
73  ports:
74    - protocol: TCP
75      port: 80
76      targetPort: 9091
77      name: web
78    - protocol: TCP
79      name: torrent-tcp
80      port: 51413
81    - protocol: UDP
82      name: torrents-udp
83      port: 51413