Refactor Argus

This commit is contained in:
Danny Bessems 2024-01-21 16:18:31 +11:00
parent 14c948cfa1
commit b7fb489900
6 changed files with 39 additions and 175 deletions

View File

@ -1,169 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: configmap-argus-conf
namespace: argus
data:
config.yml: |
notify:
default:
type: gotify
url_fields:
host: notify.spamasaurus.com
token: AVvRyjsqjLV5Ghp
service:
argoproj/argo-cd:
latest_version:
type: github
url: argoproj/argo-cd
url_commands:
- type: regex
regex: v([0-9.]+)$
notify:
default: {}
deployed_version:
url: https://gitops.spamasaurus.com/api/version
json: Version
regex: v([0-9.]+)
dashboard:
web_url: https://github.com/argoproj/argo-cd/releases/v{{ version }}
icon: https://avatars.githubusercontent.com/u/30269780?s=200&v=4
dani-garcia/vaultwarden:
latest_version:
type: github
url: dani-garcia/vaultwarden
notify:
default: {}
deployed_version:
url: https://vault.spamasaurus.com/api/version
regex: ([0-9.]+)
dashboard:
web_url: https://github.com/dani-garcia/vaultwarden/releases/{{ version }}
icon: https://raw.githubusercontent.com/dani-garcia/vaultwarden/main/src/static/images/vaultwarden-icon.png
go-gitea/gitea:
latest_version:
type: github
url: go-gitea/gitea
url_commands:
- type: regex
regex: v([0-9.]+)$
require:
regex_content: gitea-{{ version }}-linux-amd64
regex_version: ^[0-9.]+[0-9]$
notify:
default: {}
deployed_version:
url: https://code.spamasaurus.com/api/v1/version
json: version
dashboard:
web_url: https://github.com/go-gitea/gitea/releases/v{{ version }}
icon: https://raw.githubusercontent.com/go-gitea/gitea/main/assets/logo.svg
goharbor/harbor:
latest_version:
type: github
url: goharbor/harbor
url_commands:
- type: regex
regex: v([0-9.]+)$
notify:
default: {}
deployed_version:
url: https://bv11-cr01.bessems.eu/api/v2.0/systeminfo
json: harbor_version
regex: v([0-9.]+)
dashboard:
web_url: https://github.com/goharbor/harbor/releases/tag/v{{ version }}
icon: https://github.com/goharbor/harbor/raw/main/src/portal/src/images/harbor-logo.svg
gotify/server:
latest_version:
type: github
url: gotify/server
url_commands:
- type: regex
regex: v([0-9.]+)$
notify:
default: {}
deployed_version:
url: https://notify.spamasaurus.com/version
json: version
dashboard:
web_url: https://github.com/gotify/server/releases/v{{ version }}
icon: https://github.com/gotify/logo/raw/master/gotify-logo.png
prowlarr/prowlarr:
options:
semantic_versioning: false
latest_version:
type: github
url: Prowlarr/Prowlarr
url_commands:
- type: regex
regex: v([0-9.]+)$
use_prerelease: true
notify:
default: {}
deployed_version:
url: https://index.pvr.spamasaurus.com/api/v1/system/status
headers:
- key: X-Api-Key
value: 29139cfad11c491da203e54143b4606e
json: version
dashboard:
web_url: https://github.com/Prowlarr/Prowlarr/releases/v{{ version }}
icon: https://avatars.githubusercontent.com/u/73049443?s=200&v=4
radarr/radarr:
options:
semantic_versioning: false
latest_version:
type: github
url: Radarr/Radarr
url_commands:
- type: regex
regex: v([0-9.]+)$
notify:
default: {}
deployed_version:
url: https://movies.pvr.spamasaurus.com/api/v3/system/status
headers:
- key: X-Api-Key
value: d1ae67cc0368493e91e1ff40e8929e8c
json: version
dashboard:
web_url: https://github.com/Radarr/Radarr/releases/v{{ version }}
icon: https://avatars.githubusercontent.com/u/25025331?s=200&v=4
sonarr/sonarr:
options:
semantic_versioning: false
latest_version:
type: url
url: https://github.com/Sonarr/Sonarr/tags
url_commands:
- type: regex
regex: \/releases\/tag\/v?([0-9.]+)\"
notify:
default: {}
deployed_version:
url: https://series.pvr.spamasaurus.com/api/v3/system/status
headers:
- key: X-Api-Key
value: 0f040e680a3d442c90e1d4c2d7e1ba6a
json: version
dashboard:
web_url: https://series.pvr.spamasaurus.com/system/updates
icon: https://raw.githubusercontent.com/Sonarr/Sonarr/develop/Logo/256.png
release-argus/argus:
latest_version:
type: github
url: release-argus/argus
notify:
default: {}
deployed_version:
url: https://release.spamasaurus.com/api/v1/version
json: version
dashboard:
web_url: https://github.com/release-argus/Argus/blob/master/CHANGELOG.md
icon: https://github.com/release-argus/Argus/raw/master/web/ui/static/favicon.svg
settings:
log:
level: INFO
timestamps: true

View File

@ -19,19 +19,20 @@ spec:
containers: containers:
- name: argus - name: argus
image: releaseargus/argus:0.13.3 image: releaseargus/argus:0.13.3
args:
- -config.file=/app/config/config.yml
ports: ports:
- name: web - name: web
containerPort: 8080 containerPort: 8080
volumeMounts: volumeMounts:
- name: configmap-argus-conf - name: flexvolsmb-argus-config
mountPath: /app/config.yml mountPath: /app/config
subPath: config.yml
- name: flexvolsmb-argus-data - name: flexvolsmb-argus-data
mountPath: /app/data mountPath: /app/data
volumes: volumes:
- name: configmap-argus-conf - name: flexvolsmb-argus-config
configMap: persistentVolumeClaim:
name: configmap-argus-conf claimName: flexvolsmb-argus-config
- name: flexvolsmb-argus-data - name: flexvolsmb-argus-data
persistentVolumeClaim: persistentVolumeClaim:
claimName: flexvolsmb-argus-data claimName: flexvolsmb-argus-data

View File

@ -0,0 +1,19 @@
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-argus-config
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-argus-config
flexVolume:
driver: mount/smb
secretRef:
name: flexvolsmb-credentials
options:
opts: file_mode=0777,dir_mode=0777,iocharset=utf8
server: 192.168.154.225
share: /K3s.Volumes/argus/config

View File

@ -0,0 +1,13 @@
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-argus-config
namespace: argus
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-argus-config
resources:
requests:
storage: 1Gi