diff --git a/charts/stable/sabnzbd/Chart.yaml b/charts/stable/sabnzbd/Chart.yaml index 2f6bb2f7cdb..29b5625369f 100644 --- a/charts/stable/sabnzbd/Chart.yaml +++ b/charts/stable/sabnzbd/Chart.yaml @@ -34,4 +34,4 @@ sources: - https://github.com/truecharts/charts/tree/master/charts/stable/sabnzbd - https://ghcr.io/onedr0p/sabnzbd type: application -version: 17.2.9 +version: 17.2.10 diff --git a/charts/stable/sabnzbd/ci/default-values.yaml b/charts/stable/sabnzbd/ci/default-values.yaml new file mode 100644 index 00000000000..8c71aec7cea --- /dev/null +++ b/charts/stable/sabnzbd/ci/default-values.yaml @@ -0,0 +1,3 @@ +metrics: + main: + apiKey: newsn7zz12j67l4cwovjt6cyq6raqzmz diff --git a/charts/stable/sabnzbd/questions.yaml b/charts/stable/sabnzbd/questions.yaml index 2178192b54e..d36d3bae7d6 100644 --- a/charts/stable/sabnzbd/questions.yaml +++ b/charts/stable/sabnzbd/questions.yaml @@ -89,6 +89,14 @@ questions: type: int default: 568 # Include{resources} +# Include{metrics} + - variable: apiKey + label: "Sabnzbd API key" + description: "Can be found in the Bazarr settings" + schema: + type: string + default: "" + required: true # Include{advanced} # Include{addons} # Include{codeserver} diff --git a/charts/stable/sabnzbd/values.yaml b/charts/stable/sabnzbd/values.yaml index 8e503069b77..76c6e735ce8 100644 --- a/charts/stable/sabnzbd/values.yaml +++ b/charts/stable/sabnzbd/values.yaml @@ -2,23 +2,97 @@ image: repository: ghcr.io/onedr0p/sabnzbd pullPolicy: IfNotPresent tag: 4.2.2@sha256:5b1f15c8d25afa2342505492486361d4ecf14449e1453aeea45cd7c1e5eeb63a +exportarrImage: + repository: ghcr.io/onedr0p/exportarr + pullPolicy: IfNotPresent + tag: v1.6.0@sha256:b522e128509b766cf66f847190fccd225ff194dc76775fe6a215f2dd3010cac2 service: main: ports: main: port: 10097 targetPort: 8080 -persistence: - config: - enabled: true - mountPath: "/config" -portal: - open: + metrics: enabled: true + type: ClusterIP + targetSelector: exportarr + ports: + metrics: + enabled: true + port: 8990 + targetSelector: exportarr workload: main: podSpec: containers: main: + probes: + liveness: + enabled: false + readiness: + enabled: false + startup: + enabled: false env: SABNZBD__HOST_WHITELIST_ENTRIES: "" + SABNZBD__PORT: "{{ .Values.service.main.ports.main.port }}" + exportarr: + enabled: "{{ .Values.metrics.main.enabled }}" + type: Deployment + strategy: RollingUpdate + replicas: 1 + podSpec: + containers: + exportarr: + primary: true + enabled: true + imageSelector: exportarrImage + args: + - sabnzbd + probes: + liveness: + enabled: true + type: http + path: /healthz + port: "{{ .Values.service.metrics.ports.metrics.port }}" + readiness: + enabled: true + type: http + path: /healthz + port: "{{ .Values.service.metrics.ports.metrics.port }}" + startup: + enabled: true + type: http + path: /healthz + port: "{{ .Values.service.metrics.ports.metrics.port }}" + env: + INTERFACE: 0.0.0.0 + PORT: "{{ .Values.service.metrics.ports.metrics.port }}" + URL: '{{ printf "http://%v:%v" (include "tc.v1.common.lib.chart.names.fullname" $) .Values.service.main.ports.main.port }}' + APIKEY: "{{ .Values.metrics.main.apiKey }}" +persistence: + config: + enabled: true + targetSelector: + main: + main: + mountPath: /config + exportarr: + exportarr: + mountPath: /config + readOnly: true +metrics: + main: + enabled: false + type: "servicemonitor" + endpoints: + - port: metrics + path: /metrics + targetSelector: metrics + # Required for exportarr + apiKey: "" + +portal: + open: + enabled: true +