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
|
||||
kind: HelmRelease
|
||||
metadata:
|
||||
|
@ -24,7 +25,7 @@ spec:
|
|||
fsGroupChangePolicy: "OnRootMismatch"
|
||||
|
||||
containers:
|
||||
main:
|
||||
app:
|
||||
image:
|
||||
repository: ghcr.io/onedr0p/qbittorrent
|
||||
tag: 4.6.4
|
||||
|
@ -93,6 +94,21 @@ spec:
|
|||
port: 17871
|
||||
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:
|
||||
main:
|
||||
annotations:
|
||||
|
@ -124,7 +140,7 @@ spec:
|
|||
hostPath: /mnt/MainPool/Kubernetes/qbittorrent
|
||||
advancedMounts:
|
||||
main: # controller name
|
||||
main: # container name
|
||||
app: # container name
|
||||
- path: /config
|
||||
|
||||
cookies:
|
||||
|
|
|
@ -3,7 +3,7 @@ kind: Kustomization
|
|||
resources:
|
||||
- ./qbittorrent-secrets.sops.yaml
|
||||
- ./helm-release.yaml
|
||||
- ./qbittorrent-metrics.yaml
|
||||
#- ./qbittorrent-metrics.yaml
|
||||
- ./dashboard.yaml
|
||||
- ./cookie-secret.sops.yaml
|
||||
- ./updateip-script.yaml
|
||||
|
|
Loading…
Reference in New Issue