Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkfella committed Nov 17, 2024
1 parent a1190b5 commit d97f25f
Show file tree
Hide file tree
Showing 3 changed files with 56 additions and 5 deletions.
56 changes: 56 additions & 0 deletions kubernetes/main/apps/media/qbittorrent/app/externalsecret.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,59 @@ spec:
dataFrom:
- extract:
key: secrets/api-keys
---
# yaml-language-server: $schema=https://kubernetes-schemas.pages.dev/external-secrets.io/externalsecret_v1beta1.json
apiVersion: external-secrets.io/v1beta1
kind: ExternalSecret
metadata:
name: qbittorrent-gatus-ep
spec:
secretStoreRef:
kind: ClusterSecretStore
name: vault-backend
target:
name: qbittorrent-gatus-ep
template:
metadata:
labels:
gatus.io/enabled: "true"
engineVersion: v2
data:
config.yaml: |
endpoints:
- name: "qbittorrent-login"
group: guarded
url: "https://qbittorrent.${PUBLIC_DOMAIN}/api/v2/auth/login"
method: POST
body:
username: {{ .QBITTORRENT_USERNAME }}
password: {{ .QBITTORRENT_PASSWORD }}
interval: 5m
ui:
hide-hostname: true
hide-url: true
conditions:
- "[STATUS] == 200"
headers:
Content-Type: "application/x-www-form-urlencoded"
# Save cookies after login for further requests
save-cookies: true
cookie-name: qbittorrent_session_cookie
- name: "qbittorrent-version"
group: guarded
url: "https://qbittorrent.${PUBLIC_DOMAIN}/api/v2/app/version"
interval: 5m
ui:
hide-hostname: true
hide-url: true
conditions:
- "[STATUS] == 200"
alerts:
- type: pushover
headers:
Accept: application/json
Cookie: "qbt_session={{ .qbittorrent_session_cookie }}"
dataFrom:
- extract:
key: secrets/qbittorrent
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ resources:
- ./externalsecret.yaml
- ./helmrelease.yaml
- ./volsync.yaml
- ../../../../templates/gatus/guarded
configMapGenerator:
- name: qbittorrent-loki-rules
files:
Expand Down
4 changes: 0 additions & 4 deletions kubernetes/main/apps/media/qbittorrent/ks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,3 @@ spec:
wait: false
interval: 30m
timeout: 5m
postBuild:
substitute:
APP: *app
GATUS_SUBDOMAIN: qbittorrent

0 comments on commit d97f25f

Please sign in to comment.