2021-03-25 22:25:39 +00:00
|
|
|
#
|
|
|
|
# IMPORTANT NOTE
|
|
|
|
#
|
|
|
|
# This chart inherits from our common library chart. You can check the default values/options here:
|
|
|
|
# https://github.com/k8s-at-home/library-charts/tree/main/charts/stable/common/values.yaml
|
|
|
|
#
|
2019-01-30 00:21:25 +00:00
|
|
|
|
2021-08-12 12:34:18 +00:00
|
|
|
# -- Use an initContainer to delete the rtorrent.lock file when the pod starts
|
2021-06-22 14:20:59 +00:00
|
|
|
# this is only required if `session.use_lock.set = no` is NOT set
|
|
|
|
# @default -- See values.yaml
|
2021-08-12 12:34:18 +00:00
|
|
|
initContainers: {}
|
|
|
|
# remove-session-lock:
|
|
|
|
# image: busybox
|
|
|
|
# command: ["sh", "-c", "rm -rf /config/.local/share/rtorrent/.session/rtorrent.lock"]
|
|
|
|
# volumeMounts:
|
|
|
|
# - name: config
|
|
|
|
# mountPath: /config
|
2021-03-27 20:24:25 +00:00
|
|
|
|
2021-03-25 22:25:39 +00:00
|
|
|
image:
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- image repository
|
2021-03-25 22:25:39 +00:00
|
|
|
repository: jesec/rtorrent-flood
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- image tag
|
|
|
|
tag: latest@sha256:f0c894ec459e52d85bc69685247ddbd8e8fcf3709b50bf8ee8b0df3bf69b7b49
|
|
|
|
# -- image pull policy
|
2021-03-25 22:25:39 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- environment variables. See [image docs](https://github.com/jesec/flood#configuration) for more details.
|
|
|
|
# @default -- See below
|
2021-03-25 22:25:39 +00:00
|
|
|
env:
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- Set the container timezone
|
|
|
|
TZ: UTC
|
|
|
|
# -- Folder where Flood stores it's configuration
|
2021-03-25 22:25:39 +00:00
|
|
|
HOME: "/config"
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- The host that Flood should listen for web connections on
|
2021-04-01 17:48:44 +00:00
|
|
|
FLOOD_OPTION_HOST: "0.0.0.0"
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- The port that Flood should listen for web connections on
|
2021-04-01 17:48:44 +00:00
|
|
|
FLOOD_OPTION_PORT: "3000"
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- ADVANCED: rTorrent daemon managed by Flood
|
2021-04-01 17:48:44 +00:00
|
|
|
FLOOD_OPTION_RTORRENT: "true"
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- Allowed path for file operations
|
2021-04-01 17:48:44 +00:00
|
|
|
FLOOD_OPTION_ALLOWEDPATH: "/downloads"
|
2021-03-25 22:25:39 +00:00
|
|
|
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- Configures service settings for the chart.
|
|
|
|
# @default -- See values.yaml
|
2021-03-25 22:25:39 +00:00
|
|
|
service:
|
2021-06-22 14:20:59 +00:00
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
http:
|
|
|
|
port: 3000
|
|
|
|
bittorrent:
|
|
|
|
enabled: false
|
2021-03-25 22:25:39 +00:00
|
|
|
type: ClusterIP
|
2021-06-22 14:20:59 +00:00
|
|
|
ports:
|
|
|
|
bittorrent:
|
|
|
|
enabled: true
|
|
|
|
port: 6881
|
|
|
|
protocol: TCP
|
|
|
|
targetPort: 6881
|
2019-01-30 00:21:25 +00:00
|
|
|
|
|
|
|
ingress:
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- Enable and configure ingress settings for the chart under this key.
|
|
|
|
# @default -- See values.yaml
|
|
|
|
main:
|
|
|
|
enabled: false
|
2019-01-30 00:21:25 +00:00
|
|
|
|
2021-06-22 14:20:59 +00:00
|
|
|
# -- Configure persistence settings for the chart under this key.
|
|
|
|
# @default -- See values.yaml
|
2019-01-30 00:21:25 +00:00
|
|
|
persistence:
|
|
|
|
config:
|
2021-03-25 22:25:39 +00:00
|
|
|
enabled: false
|
|
|
|
|
|
|
|
downloads:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
# -- Minimal configuration provided from https://github.com/jesec/rtorrent/blob/master/doc/rtorrent.rc
|
2021-04-01 17:48:44 +00:00
|
|
|
# @default -- string
|
2021-03-25 22:25:39 +00:00
|
|
|
config: |
|
2021-03-27 20:24:25 +00:00
|
|
|
session.use_lock.set = no
|
2021-03-25 22:25:39 +00:00
|
|
|
method.insert = cfg.basedir, private|const|string, (cat,(fs.homedir),"/.local/share/rtorrent/")
|
2021-03-27 20:24:25 +00:00
|
|
|
method.insert = cfg.download, private|const|string, (cat,"/downloads/","download/")
|
|
|
|
method.insert = cfg.logs, private|const|string, (cat,(cfg.download),"log/")
|
2021-03-25 22:25:39 +00:00
|
|
|
method.insert = cfg.logfile, private|const|string, (cat,(cfg.logs),"rtorrent-",(system.time),".log")
|
|
|
|
method.insert = cfg.session, private|const|string, (cat,(cfg.basedir),".session/")
|
2021-03-27 20:24:25 +00:00
|
|
|
method.insert = cfg.watch, private|const|string, (cat,(cfg.download),"watch/")
|
2021-03-25 22:25:39 +00:00
|
|
|
fs.mkdir.recursive = (cat,(cfg.basedir))
|
|
|
|
fs.mkdir = (cat,(cfg.download))
|
|
|
|
fs.mkdir = (cat,(cfg.logs))
|
|
|
|
fs.mkdir = (cat,(cfg.session))
|
|
|
|
fs.mkdir = (cat,(cfg.watch))
|
|
|
|
fs.mkdir = (cat,(cfg.watch),"/load")
|
|
|
|
fs.mkdir = (cat,(cfg.watch),"/start")
|
|
|
|
schedule2 = watch_load, 11, 10, ((load.verbose, (cat, (cfg.watch), "load/*.torrent")))
|
|
|
|
schedule2 = watch_start, 10, 10, ((load.start_verbose, (cat, (cfg.watch), "start/*.torrent")))
|
|
|
|
dht.add_bootstrap = dht.transmissionbt.com:6881
|
|
|
|
dht.add_bootstrap = dht.libtorrent.org:25401
|
|
|
|
throttle.max_uploads.set = 100
|
|
|
|
throttle.max_uploads.global.set = 250
|
|
|
|
throttle.min_peers.normal.set = 20
|
|
|
|
throttle.max_peers.normal.set = 60
|
|
|
|
throttle.min_peers.seed.set = 30
|
|
|
|
throttle.max_peers.seed.set = 80
|
|
|
|
trackers.numwant.set = 80
|
2021-03-27 20:24:25 +00:00
|
|
|
network.port_range.set = 6881-6881
|
2021-03-25 22:25:39 +00:00
|
|
|
network.max_open_files.set = 600
|
|
|
|
network.max_open_sockets.set = 300
|
|
|
|
pieces.memory.max.set = 1800M
|
|
|
|
session.path.set = (cat, (cfg.session))
|
|
|
|
directory.default.set = (cat, (cfg.download))
|
|
|
|
log.execute = (cat, (cfg.logs), "execute.log")
|
|
|
|
encoding.add = utf8
|
2021-03-27 20:24:25 +00:00
|
|
|
system.daemon.set = true
|
|
|
|
system.umask.set = 0002
|
2021-03-25 22:25:39 +00:00
|
|
|
system.cwd.set = (directory.default)
|
|
|
|
network.http.max_open.set = 50
|
|
|
|
network.http.dns_cache_timeout.set = 25
|
|
|
|
network.scgi.open_local = (cat,(cfg.basedir),rtorrent.sock)
|
|
|
|
print = (cat, "Logging to ", (cfg.logfile))
|
|
|
|
log.open_file = "log", (cfg.logfile)
|
|
|
|
log.add_output = "info", "log"
|