-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtorrent.yaml
80 lines (80 loc) · 1.42 KB
/
torrent.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
apiVersion: v1
kind: Pod
metadata:
name: torrent
labels:
app: torrent
spec:
containers:
- image: generalinterest/torrent
imagePullPolicy: IfNotPresent
name: torrent
volumeMounts:
- mountPath: /transmission/downloads
name: downloads
- mountPath: /transmission/incomplete
name: incomplete
nodeSelector:
kubernetes.io/arch: arm64
# kubernetes.io/arch: arm
# kubernetes.io/arch: amd64
restartPolicy: Never
# restartPolicy: Always
volumes:
- name: downloads
nfs:
path: /mnt/nfs/pvdata/torrent/downloads
server: nfs.home
- name: incomplete
nfs:
path: /mnt/nfs/pvdata/torrent/incomplete
server: nfs.home
---
apiVersion: v1
kind: Service
metadata:
labels:
app: torrenttcp
name: torrenttcp
spec:
type: NodePort
# type: LoadBalancer
ports:
- port: 9091
protocol: TCP
name: web
- port: 51413
protocol: TCP
name: datatcp
selector:
app: torrent
---
apiVersion: v1
kind: Service
metadata:
labels:
app: torrentudp
name: torrentudp
spec:
type: NodePort
# type: LoadBalancer
ports:
- port: 51414
protocol: UDP
name: dataudp
selector:
app: torrent
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: torrent
spec:
entryPoints:
- web
routes:
- match: Host(`torrent.pik8s.home`) && PathPrefix(`/`)
kind: Rule
services:
- name: torrenttcp
port: 9091