proper backup config
This commit is contained in:
parent
deed24aa01
commit
49b21cde52
@ -4,7 +4,7 @@ kind: Kustomization
|
|||||||
namespace: backup
|
namespace: backup
|
||||||
# nameSuffix: -backup
|
# nameSuffix: -backup
|
||||||
resources:
|
resources:
|
||||||
- ../../base
|
- ../../cronjobs-base
|
||||||
# - ./restic-commands.yaml
|
# - ./restic-commands.yaml
|
||||||
|
|
||||||
|
|
@ -3,7 +3,7 @@ kind: Kustomization
|
|||||||
|
|
||||||
namespace: backup
|
namespace: backup
|
||||||
resources:
|
resources:
|
||||||
- ../../base
|
- ../../cronjobs-base
|
||||||
|
|
||||||
|
|
||||||
# patch the cronjob args field:
|
# patch the cronjob args field:
|
@ -1,6 +1,14 @@
|
|||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
|
|
||||||
|
namespace: backup
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- rclone-config.sealedsecret.yaml
|
- namespace.yaml
|
||||||
- restic-password.sealedsecret.yaml
|
|
||||||
- pvc.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
|
apiVersion: argoproj.io/v1alpha1
|
||||||
kind: Application
|
kind: Application
|
||||||
metadata:
|
metadata:
|
||||||
name: restic-commons-application
|
name: backup-application
|
||||||
namespace: argocd
|
namespace: argocd
|
||||||
spec:
|
spec:
|
||||||
project: infrastructure
|
project: infrastructure
|
||||||
source:
|
source:
|
||||||
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git
|
repoURL: ssh://git@git.kluster.moll.re:2222/remoll/k3s-infra.git
|
||||||
targetRevision: main
|
targetRevision: main
|
||||||
path: infrastructure/backup/common
|
path: infrastructure/backup/
|
||||||
destination:
|
destination:
|
||||||
server: https://kubernetes.default.svc
|
server: https://kubernetes.default.svc
|
||||||
namespace: backup
|
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
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- common.application.yaml
|
- application.yaml
|
||||||
- backup.application.yaml
|
|
||||||
- prune.application.yaml
|
|
||||||
- postgres.backup.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