Paperless--;Argus++

This commit is contained in:
Danny Bessems 2023-09-19 10:02:18 +02:00
parent 393f502266
commit c7181b3766
11 changed files with 208 additions and 130 deletions

View File

@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: argus

View File

@ -0,0 +1,72 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: configmap-argus-conf
namespace: argus
data:
config.yml: |
service:
dani-garcia/vaultwarden:
latest_version:
type: github
url: dani-garcia/vaultwarden
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]$
deployed_version:
url: https://code.spamasaurus.com
regex: 'Powered by Gitea\s+Version:\s+([0-9.]+) '
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.]+)$
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.]+)$
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
release-argus/argus:
latest_version:
type: github
url: release-argus/argus
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

View File

@ -0,0 +1,37 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: argus
namespace: argus
labels:
app: argus
spec:
replicas: 1
selector:
matchLabels:
app: argus
template:
metadata:
labels:
app: argus
spec:
serviceAccountName: argus
containers:
- name: argus
image: bv11-cr01.bessems.eu/proxy/releaseargus/argus:0.13.3
ports:
- name: web
containerPort: 8080
volumeMounts:
- name: configmap-argus-conf
mountPath: /app/config.yml
subPath: config.yml
- name: flexvolsmb-argus-data
mountPath: /app/data
volumes:
- name: configmap-argus-conf
configMap:
name: configmap-argus-conf
- name: flexvolsmb-argus-data
persistentVolumeClaim:
claimName: flexvolsmb-argus-data

View File

@ -0,0 +1,18 @@
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: argus
namespace: argus
spec:
entryPoints:
- websecure
routes:
- match: Host(`release.spamasaurus.com`)
kind: Rule
services:
- name: argus
port: 8080
middlewares:
- name: 2fa-authentication@file
- name: security-headers@file
- name: compression@file

View File

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

View File

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

View File

@ -0,0 +1,17 @@
apiVersion: bitnami.com/v1alpha1
kind: SealedSecret
metadata:
creationTimestamp: null
name: smb-secret
namespace: argus
spec:
encryptedData:
password: AgBYWANvTuW3Ju9BujDeu/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KESgEVEDespaz6wgcpgwnn0nPEd6DmDaSDPH22dlFIpNLJcGB4JCZ5skmUx1JP+bNZGE0Hs/R4t/T2VXYbVRFD1n0AaeZCcsUZpt8FFVYdtqRoJG19JxVqpUkJcXQxy1YiNxlKNtI8eC+BmltOTMMBDCu1osbFyuh6UhK21neUOyFQZ0EsvWBiuNKqjIyibmmEGkDFfGNMliJDGtUXr62WJ1TZfFCifWSofOHOw2ZQNB1m6dC+MlNm4+VmOw+kSTGtFF7kv0+AABv+AJnpPr24OjrYkwnlOsXpD4CIut3ySK0I/PixrxUddS+DB52xguWZedgUuKlU4fLeOpos=
template:
data: null
metadata:
creationTimestamp: null
name: smb-secret
namespace: argus
type: mount/smb

View File

@ -0,0 +1,9 @@
apiVersion: v1
data:
password: QmVyQXdyRThFV1J1ZmFXMw==
username: enpjaWZz
kind: Secret
metadata:
name: smb-secret
namespace: argus
type: mount/smb

View File

@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: argus
namespace: argus
spec:
ports:
- protocol: TCP
name: web
port: 8080
selector:
app: argus

View File

@ -0,0 +1,7 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: argus
namespace: argus
labels:
app: argus

View File

@ -1,130 +0,0 @@
apiVersion: v1
kind: Service
metadata:
name: paperless
spec:
ports:
- protocol: TCP
name: web
port: 8000
selector:
app: paperless
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: paperless
labels:
app: paperless
spec:
replicas: 1
selector:
matchLabels:
app: paperless
template:
metadata:
labels:
app: paperless
spec:
containers:
- name: frontend
image: bv11-cr01.bessems.eu/proxy/linuxserver/paperless-ngx:1.7.1
env:
- name: TZ
value: Europe/Amsterdam
ports:
- name: web
containerPort: 8000
volumeMounts:
- mountPath: /data
name: flexvolsmb-paperless-data
- mountPath: /config
name: flexvolsmb-paperless-config
volumes:
- name: flexvolsmb-paperless-data
persistentVolumeClaim:
claimName: flexvolsmb-paperless-data
- name: flexvolsmb-paperless-config
persistentVolumeClaim:
claimName: flexvolsmb-paperless-config
---
apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: paperless
spec:
entryPoints:
- websecure
routes:
- match: Host(`ocr.spamasaurus.com`)
kind: Rule
services:
- name: paperless
port: 8000
middlewares:
- name: security-headers@file
- name: compression@file
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-paperless-data
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-paperless-data
flexVolume:
driver: mount/smb
secretRef:
name: smb-secret
options:
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8
server: 192.168.11.225
share: /K3s.Volumes/paperless/data
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-paperless-data
namespace: default
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-paperless-data
resources:
requests:
storage: 1Gi
---
apiVersion: v1
kind: PersistentVolume
metadata:
name: flexvolsmb-paperless-config
spec:
capacity:
storage: 1Gi
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-paperless-config
flexVolume:
driver: mount/smb
secretRef:
name: smb-secret
options:
opts: domain=bessems.eu,file_mode=0777,dir_mode=0777,iocharset=utf8,nobrl
server: 192.168.11.225
share: /K3s.Volumes/paperless/config
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: flexvolsmb-paperless-config
namespace: default
spec:
accessModes:
- ReadWriteMany
storageClassName: flexvolsmb-paperless-config
resources:
requests:
storage: 1Gi