mirror of
https://github.com/auricom/home-cluster.git
synced 2025-12-22 07:26:30 +01:00
fixup! feat: opnsense backup
This commit is contained in:
@@ -1,7 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
set -o nounset
|
# Exit on error, undefined vars, pipe failures, and debug each command
|
||||||
set -o errexit
|
set -o errexit
|
||||||
|
set -o nounset
|
||||||
|
set -o pipefail
|
||||||
|
set -o xtrace
|
||||||
|
|
||||||
|
# Cleanup temporary files on script exit
|
||||||
|
trap 'rm -f "/tmp/${config_filename}"' EXIT
|
||||||
|
|
||||||
config_filename="$(date "+%Y%m%d-%H%M%S").xml"
|
config_filename="$(date "+%Y%m%d-%H%M%S").xml"
|
||||||
|
|
||||||
|
|||||||
@@ -37,13 +37,13 @@ spec:
|
|||||||
app:
|
app:
|
||||||
image:
|
image:
|
||||||
repository: ghcr.io/auricom/kubectl
|
repository: ghcr.io/auricom/kubectl
|
||||||
tag: 1.32.1@sha256:b01d7c1b5d9e900119a7568fc4d08a3a46afb65d430ed66173cdf101b4f211db
|
tag: 1.32.1@sha256:33ff33f4d00dc6779198b0da0200caddad8c191c59fe427dcaebe89695298ff0
|
||||||
command:
|
command:
|
||||||
- /bin/bash
|
- /bin/bash
|
||||||
- /app/backup.sh
|
- /app/backup.sh
|
||||||
env:
|
env:
|
||||||
OPNSENSE_URL: "https://opnsense.${SECRET_INTERNAL_DOMAIN}"
|
OPNSENSE_URL: "https://opnsense.${SECRET_INTERNAL_DOMAIN}"
|
||||||
S3_URL: "https://minio.${SECRET_INTERNAL_DOMAIN}"
|
S3_URL: "https://s3.${SECRET_INTERNAL_DOMAIN}"
|
||||||
envFrom:
|
envFrom:
|
||||||
- secretRef:
|
- secretRef:
|
||||||
name: homelab-opnsense-backup-secret
|
name: homelab-opnsense-backup-secret
|
||||||
|
|||||||
Reference in New Issue
Block a user