forked from billimek/k8s-gitops
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathflood.yaml
161 lines (152 loc) · 3.72 KB
/
flood.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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: flood
namespace: default
spec:
interval: 5m
chart:
spec:
# renovate: registryUrl=https://k8s-at-home.com/charts/
chart: flood
version: 6.4.2
sourceRef:
kind: HelmRepository
name: k8s-at-home-charts
namespace: flux-system
interval: 5m
values:
image:
repository: jesec/flood
tag: 4.7.0
env:
FLOOD_OPTION_RUNDIR: /config
FLOOD_OPTION_AUTH: "none"
FLOOD_OPTION_RTSOCKET: "/tmp/rtorrent.sock"
ingress:
main:
enabled: true
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/auth-url: "https://auth.eviljungle.com/oauth2/auth"
nginx.ingress.kubernetes.io/auth-signin: https://auth.eviljungle.com/oauth2/start
hosts:
- host: f.eviljungle.com
paths:
- path: /
pathType: Prefix
tls:
- hosts:
- "f.eviljungle.com"
persistence:
data:
enabled: true
existingClaim: nfs-media-downloads-pvc
accessMode: ReadWriteMany
size: "1Gi"
config:
enabled: true
size: 1Gi
storageClass: rook-ceph-block
socket:
enabled: true
type: emptyDir
# medium: Memory
mountPath: /tmp
probes:
liveness:
enabled: true
initialDelaySeconds: 30
failureThreshold: 5
timeoutSeconds: 10
readiness:
enabled: true
initialDelaySeconds: 30
failureThreshold: 5
timeoutSeconds: 10
startup:
enabled: true
initialDelaySeconds: 5
failureThreshold: 30
periodSeconds: 10
podAnnotations:
backup.velero.io/backup-volumes: config
resources:
requests:
memory: 50Mi
cpu: 50m
limits:
memory: 640Mi
additionalContainers:
- name: rtorrent
# image: billimek/alpine-rtorrent:0.9.8-1
image: billimek/rtorrent:latest@sha256:9369e406e27bcc7025cbb9412617bf4e484c1f66f2f6fa66d8278d2fc63e3b8d
env:
- name: PUID
value: "1001"
- name: PGID
value: "1001"
livenessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: bt
timeoutSeconds: 1
ports:
- name: bt
containerPort: 49161
protocol: TCP
readinessProbe:
failureThreshold: 3
periodSeconds: 10
successThreshold: 1
tcpSocket:
port: bt
timeoutSeconds: 1
resources:
limits:
memory: 1Gi
requests:
cpu: 50m
memory: 200Mi
startupProbe:
failureThreshold: 60
periodSeconds: 10
initialDelaySeconds: 5
successThreshold: 1
tcpSocket:
port: bt
timeoutSeconds: 1
tty: true
volumeMounts:
- mountPath: /config
name: config
- mountPath: /data
name: data
- mountPath: /session
name: data
subPath: .session
- mountPath: /watch
name: data
subPath: watch
- mountPath: /download
name: data
subPath: torrents
- mountPath: /socket
name: socket
# additionalVolumes:
# - emptyDir: {}
# name: socket
service:
bt:
enabled: true
type: LoadBalancer
loadBalancerIP: 10.0.6.57
ports:
bt:
enabled: true
port: 49161
protocol: TCP
targetPort: 49161