Add guarded arschrock PostgreSQL backup CronJob and alerts
This commit is contained in:
1 parent
3d3a1e91fc
commit
53e9646061
8 files changed
+169
No files matched your search
@@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: backup
|
||||
@@ -0,0 +1,17 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: AppProject
|
||||
metadata:
|
||||
name: backup
|
||||
namespace: argocd
|
||||
spec:
|
||||
description: Cluster-specific backup schedules and storage access
|
||||
sourceRepos:
|
||||
- https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
destinations:
|
||||
- namespace: backup
|
||||
server: https://kubernetes.default.svc
|
||||
namespaceResourceWhitelist:
|
||||
- group: ""
|
||||
kind: ConfigMap
|
||||
- group: batch
|
||||
kind: CronJob
|
||||
@@ -0,0 +1,19 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: backup
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: backup
|
||||
source:
|
||||
repoURL: https://code.brunner.ninja/feedc0de/homelab-gitops.git
|
||||
targetRevision: main
|
||||
path: apps/backup
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: backup
|
||||
syncPolicy:
|
||||
automated:
|
||||
enabled: true
|
||||
prune: false
|
||||
selfHeal: true
|
||||
@@ -1,6 +1,9 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- backup-namespace.yaml
|
||||
- backup-project.yaml
|
||||
- backup.yaml
|
||||
- argocd-project.yaml
|
||||
- argocd.yaml
|
||||
- project.yaml
|
||||
|
||||
Reference in new issue
Block a user