backups deployed using argo
This commit is contained in:
18
kluster-deployments/backup/backup.application.yaml
Normal file
18
kluster-deployments/backup/backup.application.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: restic-backup-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: HEAD
|
||||
path: infrastructure/backup/overlays/backup
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: backup
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
5
kluster-deployments/backup/kustomization.yaml
Normal file
5
kluster-deployments/backup/kustomization.yaml
Normal file
@@ -0,0 +1,5 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- backup.application.yaml
|
||||
- prune.application.yaml
|
18
kluster-deployments/backup/prune.application.yaml
Normal file
18
kluster-deployments/backup/prune.application.yaml
Normal file
@@ -0,0 +1,18 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: restic-prune-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: https://github.com/moll-re/k3s-infra.git
|
||||
targetRevision: HEAD
|
||||
path: infrastructure/backup/overlays/prune
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: backup
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
@@ -11,3 +11,4 @@ resources:
|
||||
- immich/
|
||||
- homeassistant/
|
||||
- ntfy/
|
||||
- backup/
|
||||
|
Reference in New Issue
Block a user