proper backup config
This commit is contained in:
parent
deed24aa01
commit
49b21cde52
@ -4,7 +4,7 @@ kind: Kustomization
|
||||
namespace: backup
|
||||
# nameSuffix: -backup
|
||||
resources:
|
||||
- ../../base
|
||||
- ../../cronjobs-base
|
||||
# - ./restic-commands.yaml
|
||||
|
||||
|
@ -3,7 +3,7 @@ kind: Kustomization
|
||||
|
||||
namespace: backup
|
||||
resources:
|
||||
- ../../base
|
||||
- ../../cronjobs-base
|
||||
|
||||
|
||||
# patch the cronjob args field:
|
@ -1,6 +1,14 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
|
||||
kind: Kustomization
|
||||
|
||||
namespace: backup
|
||||
|
||||
resources:
|
||||
- rclone-config.sealedsecret.yaml
|
||||
- restic-password.sealedsecret.yaml
|
||||
- namespace.yaml
|
||||
- pvc.yaml
|
||||
- restic-password.sealedsecret.yaml
|
||||
- rclone-config.sealedsecret.yaml
|
||||
- rclone-gcloud.deployment.yaml
|
||||
- cronjobs-overlays/prune/
|
||||
- cronjobs-overlays/backup/
|
4
infrastructure/backup/namespace.yaml
Normal file
4
infrastructure/backup/namespace.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: placeholder
|
@ -1,14 +1,14 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: restic-commons-application
|
||||
name: backup-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git
|
||||
targetRevision: main
|
||||
path: infrastructure/backup/common
|
||||
path: infrastructure/backup/
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: backup
|
@ -1,18 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: restic-backup-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git
|
||||
targetRevision: main
|
||||
path: infrastructure/backup/overlays/backup
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: backup
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
@ -1,7 +1,4 @@
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
resources:
|
||||
- common.application.yaml
|
||||
- backup.application.yaml
|
||||
- prune.application.yaml
|
||||
- postgres.backup.application.yaml
|
||||
- application.yaml
|
||||
|
@ -1,18 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: postgres-backup-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git
|
||||
targetRevision: main
|
||||
path: infrastructure/backup/postgres
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: backup
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
@ -1,18 +0,0 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: restic-prune-application
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: infrastructure
|
||||
source:
|
||||
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git
|
||||
targetRevision: main
|
||||
path: infrastructure/backup/overlays/prune
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: backup
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
Loading…
x
Reference in New Issue
Block a user