⬆️ opnsense-backup app-template v2

This commit is contained in:
auricom
2023-11-02 21:02:43 +01:00
parent 94a3cad946
commit 062b4ef72f
2 changed files with 24 additions and 21 deletions

View File

@@ -108,11 +108,11 @@ spec:
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/photo
globalMounts:
- path: /mnt/storage/photo
- path: /mnt/storage/photo
video:
enabled: true
type: nfs
server: "${LOCAL_LAN_TRUENAS}"
path: /mnt/storage/video
globalMounts:
- path: /mnt/storage/video
- path: /mnt/storage/video

View File

@@ -10,7 +10,7 @@ spec:
chart:
spec:
chart: app-template
version: 1.5.1
version: 2.0.3
sourceRef:
kind: HelmRepository
name: bjw-s
@@ -27,21 +27,23 @@ spec:
uninstall:
keepHistory: false
values:
controller:
type: cronjob
cronjob:
concurrencyPolicy: Forbid
schedule: "@daily"
restartPolicy: OnFailure
image:
repository: ghcr.io/auricom/kubectl
tag: 1.28.2@sha256:c501dc41a29b62346cc791b83e1f0d6755dcc1776b89d506f4c4a8e3fb63be41
env:
OPNSENSE_URL: "https://opnsense.${SECRET_DOMAIN}"
S3_URL: "https://truenas.${SECRET_DOMAIN}:51515"
envFrom:
- secretRef:
name: opnsense-backup-secret
controllers:
main:
type: cronjob
cronjob:
concurrencyPolicy: Forbid
schedule: "@daily"
containers:
main:
image:
repository: ghcr.io/auricom/kubectl
tag: 1.28.2@sha256:c501dc41a29b62346cc791b83e1f0d6755dcc1776b89d506f4c4a8e3fb63be41
env:
OPNSENSE_URL: "https://opnsense.${SECRET_DOMAIN}"
S3_URL: "https://truenas.${SECRET_DOMAIN}:51515"
envFrom:
- secretRef:
name: opnsense-backup-secret
service:
main:
enabled: false
@@ -50,7 +52,8 @@ spec:
enabled: true
type: configMap
name: opnsense-backup-configmap
subPath: opnsense-backup.sh
mountPath: /app/opnsense-backup.sh
defaultMode: 0775
readOnly: true
globalMounts:
- path: /app/opnsense-backup.sh
subPath: opnsense-backup.sh
readOnly: true