Files
truecharts/charts/stable/rtorrent-rutorrent/values.yaml
T
a9bc88418b fix(prowlarr): Change prowlarr exportarr pod into a sidecar container (#25111)
**Description**

Prowlarr helm chart and other Arrs implementing a exportarr pod can fail
when deployed on a multi node cluster when the pods are provisioned on
different nodes. This is because both mount the config PVC which is in
ReadWriteOnce accessModes by default which only allows mounting on the
same node.

Fixes #25130

The solution I chose is to convert the exportarr pod into a sidecar
container. I choose this approach for simplicity.

If this is not acceptable I will gladly change the approach and create a
new PR and create one for each other affected Arr chart.

**⚙️ Type of change**

- [ ] ⚙️ Feature/App addition
- [x] 🪛 Bugfix
- [ ] ⚠️ Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- [ ] 🔃 Refactor of current code

**🧪 How Has This Been Tested?**

Deployed on my home lab.

**📃 Notes:**
<!-- Please enter any other relevant information here -->

**✔️ Checklist:**

- [x] ⚖️ My code follows the style guidelines of this project
- [x] 👀 I have performed a self-review of my own code
- [ ] #️⃣ I have commented my code, particularly in hard-to-understand
areas
- [ ] 📄 I have made corresponding changes to the documentation
- [ ] ⚠️ My changes generate no new warnings
- [ ] 🧪 I have added tests to this description that prove my fix is
effective or that my feature works
- [ ] ⬆️ I increased versions for any altered app according to semantic
versioning
- [x] I made sure the title starts with `feat(chart-name):`,
`fix(chart-name):` or `chore(chart-name):`

** App addition**

If this PR is an app addition please make sure you have done the
following.

- [ ] 🖼️ I have added an icon in the Chart's root directory called
`icon.png`

---

_Please don't blindly check all the boxes. Read them and only check
those that apply.
Those checkboxes are there for the reviewer to see what is this all
about and
the status of this PR with a quick glance._

---------

Signed-off-by: alfi0812 <43101280+alfi0812@users.noreply.github.com>
Co-authored-by: alfi0812 <43101280+alfi0812@users.noreply.github.com>
2024-08-26 21:53:30 +02:00

136 lines
3.3 KiB
YAML

image:
repository: ghcr.io/crazy-max/rtorrent-rutorrent
pullPolicy: IfNotPresent
tag: 4.2.9-0.9.8_2-0.13.8_1@sha256:8d089b00282a203886361268d9210106956302c2194e75ae56982a6f0398aef9
exportarrImage:
repository: ghcr.io/thde/rtorrent_exporter
pullPolicy: IfNotPresent
tag: v1.3.2@sha256:dac13545d02d5f36d03d4ef0c75d11b9333334b2ce9a0fa701eba800a795b494
securityContext:
container:
PUID: 33
runAsNonRoot: false
readOnlyRootFilesystem: false
runAsUser: 0
runAsGroup: 0
service:
main:
ports:
main:
protocol: http
port: 8080
rtorrent:
enabled: true
ports:
rtorrent:
enabled: true
protocol: tcp
port: 33942
xmlrpc:
enabled: true
ports:
xmlrpc:
enabled: true
protocol: http
port: 8000
dht:
enabled: true
ports:
dht:
enabled: true
protocol: udp
port: 6881
webdav:
enabled: true
ports:
webdav:
enabled: true
protocol: http
port: 9000
rtinc:
enabled: true
ports:
rtinc:
enabled: true
port: 50000
metrics:
enabled: "{{ .Values.metrics.main.enabled }}"
type: ClusterIP
ports:
metrics:
enabled: true
port: 9135
workload:
main:
podSpec:
containers:
main:
probes:
liveness:
exec:
command:
- /usr/local/bin/healthcheck
readiness:
exec:
command:
- /usr/local/bin/healthcheck
startup:
exec:
command:
- /usr/local/bin/healthcheck
env:
RUTORRENT_PORT: "{{ .Values.service.main.ports.main.port }}"
PORT_RTORRENT: "{{ .Values.service.rtorrent.ports.rtorrent.port }}"
RT_DHT_PORT: "{{ .Values.service.dht.ports.dht.port }}"
XMLRPC_PORT: "{{ .Values.service.xmlrpc.ports.xmlrpc.port }}"
WEBDAV_PORT: "{{ .Values.service.webdav.ports.webdav.port }}"
RT_INC_PORT: "{{ .Values.service.rtinc.ports.rtinc.port }}"
exportarr:
enabled: "{{ .Values.metrics.main.enabled }}"
imageSelector: exportarrImage
args:
- --rtorrent.scrape-uri={{ printf "http://%s-xmlrpc.%s:%v/RPC2/" .Release.Name .Release.Namespace .Values.service.xmlrpc.ports.xmlrpc.port }}
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
env:
INTERFACE: 0.0.0.0
PORT: "{{ .Values.service.metrics.ports.metrics.port }}"
URL: '{{ printf "http://%s-xmlrpc.%s:%v/RPC2/" .Release.Name .Release.Namespace .Values.service.xmlrpc.ports.xmlrpc.port }}'
ENABLE_ADDITIONAL_METRICS: false
ENABLE_UNKNOWN_QUEUE_ITEMS: false
persistence:
data:
enabled: true
mountPath: "/data"
downloads:
enabled: true
mountPath: "/downloads"
passwd:
enabled: true
mountPath: "/passwd"
metrics:
main:
enabled: true
type: "servicemonitor"
endpoints:
- port: metrics
path: /metrics
targetSelector: metrics
prometheusRule:
enabled: false
portal:
open:
enabled: true