qbit: allow for https probe option (#2360)

* qbit: allow for https probe option

* fmt

* fix upgrade

* whoops
This commit is contained in:
Stavros Kois
2024-04-09 11:03:25 +03:00
committed by GitHub
parent 7afce46e95
commit 60d5c614ba
4 changed files with 17 additions and 4 deletions

View File

@@ -4,7 +4,7 @@ description: The qBittorrent project aims to provide an open-source software alt
annotations:
title: qBittorrent
type: application
version: 1.2.10
version: 1.2.11
apiVersion: v2
appVersion: 4.6.4
kubeVersion: '>=1.16.0-0'

View File

@@ -97,6 +97,15 @@ questions:
min: 9000
max: 65535
required: true
- variable: useHttpsProbe
label: Use HTTPS Probe
description: |
Use HTTPS probe for the qBittorrent Web UI. </br>
This will ONLY affect the probes, only enable this if you
configured HTTPS in the qBittorrent Web UI.
schema:
type: boolean
default: false
- variable: hostNetwork
label: Host Network
description: |

View File

@@ -25,19 +25,22 @@ workload:
- configMapRef:
name: qbit-config
probes:
{{- if not (hasKey .Values.qbitNetwork "useHttpsProbe") -}}
{{- $_ := set .Values.qbitNetwork "useHttpsProbe" false -}}
{{- end }}
liveness:
enabled: true
type: http
type: {{ ternary "https" "http" .Values.qbitNetwork.useHttpsProbe }}
port: "{{ .Values.qbitNetwork.webPort }}"
path: /
readiness:
enabled: true
type: http
type: {{ ternary "https" "http" .Values.qbitNetwork.useHttpsProbe }}
port: "{{ .Values.qbitNetwork.webPort }}"
path: /
startup:
enabled: true
type: http
type: {{ ternary "https" "http" .Values.qbitNetwork.useHttpsProbe }}
port: "{{ .Values.qbitNetwork.webPort }}"
path: /
initContainers:

View File

@@ -14,6 +14,7 @@ qbitConfig:
qbitNetwork:
webPort: 30024
btPort: 50413
useHttpsProbe: false
hostNetwork: false
qbitRunAs: