fix(qbittorrent): use app-template chart for creating ServiceMonitor
This commit is contained in:
parent
bc0f2b54e0
commit
fcdb3d78b5
|
@ -1,3 +1,4 @@
|
||||||
|
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s/helm-charts/main/charts/other/app-template/schemas/helmrelease-helm-v2beta2.schema.json
|
||||||
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
apiVersion: helm.toolkit.fluxcd.io/v2beta2
|
||||||
kind: HelmRelease
|
kind: HelmRelease
|
||||||
metadata:
|
metadata:
|
||||||
|
@ -24,7 +25,7 @@ spec:
|
||||||
fsGroupChangePolicy: "OnRootMismatch"
|
fsGroupChangePolicy: "OnRootMismatch"
|
||||||
|
|
||||||
containers:
|
containers:
|
||||||
main:
|
app:
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/onedr0p/qbittorrent
|
repository: ghcr.io/onedr0p/qbittorrent
|
||||||
tag: 4.6.4
|
tag: 4.6.4
|
||||||
|
@ -93,6 +94,21 @@ spec:
|
||||||
port: 17871
|
port: 17871
|
||||||
protocol: HTTP
|
protocol: HTTP
|
||||||
|
|
||||||
|
serviceMonitor:
|
||||||
|
app:
|
||||||
|
enabled: true
|
||||||
|
serviceName: qbittorrent
|
||||||
|
|
||||||
|
labels:
|
||||||
|
release: kube-prometheus-stack
|
||||||
|
|
||||||
|
endpoints:
|
||||||
|
- port: metrics
|
||||||
|
scheme: http
|
||||||
|
path: /metrics
|
||||||
|
interval: 3m
|
||||||
|
scrapeTimeout: 1m
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
main:
|
main:
|
||||||
annotations:
|
annotations:
|
||||||
|
@ -124,7 +140,7 @@ spec:
|
||||||
hostPath: /mnt/MainPool/Kubernetes/qbittorrent
|
hostPath: /mnt/MainPool/Kubernetes/qbittorrent
|
||||||
advancedMounts:
|
advancedMounts:
|
||||||
main: # controller name
|
main: # controller name
|
||||||
main: # container name
|
app: # container name
|
||||||
- path: /config
|
- path: /config
|
||||||
|
|
||||||
cookies:
|
cookies:
|
||||||
|
|
|
@ -3,7 +3,7 @@ kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- ./qbittorrent-secrets.sops.yaml
|
- ./qbittorrent-secrets.sops.yaml
|
||||||
- ./helm-release.yaml
|
- ./helm-release.yaml
|
||||||
- ./qbittorrent-metrics.yaml
|
#- ./qbittorrent-metrics.yaml
|
||||||
- ./dashboard.yaml
|
- ./dashboard.yaml
|
||||||
- ./cookie-secret.sops.yaml
|
- ./cookie-secret.sops.yaml
|
||||||
- ./updateip-script.yaml
|
- ./updateip-script.yaml
|
||||||
|
|
Loading…
Reference in New Issue