Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
all backups
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsumaui committed Jun 20, 2023
1 parent 689aeea commit 4f2159e
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 8 deletions.
4 changes: 2 additions & 2 deletions cluster/apps/default/actual/volsync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: actual
namespace: home
namespace: default
spec:
sourcePVC: actual-data-pvc
trigger:
Expand All @@ -29,7 +29,7 @@ apiVersion: v1
kind: Secret
metadata:
name: actual-restic-secret
namespace: home
namespace: default
labels:
app.kubernetes.io/name: actual
type: Opaque
Expand Down
1 change: 1 addition & 0 deletions cluster/apps/media/plex/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- volsync.yaml
41 changes: 41 additions & 0 deletions cluster/apps/media/plex/volsync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# yaml-language-server: $schema=https://schemas.budimanjojo.com/volsync.backube/replicationsource_v1alpha1.json
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: plex
namespace: media
spec:
sourcePVC: plex-config-pvc
trigger:
schedule: 0 2 * * *
restic:
copyMethod: Snapshot
pruneIntervalDays: 7
repository: plex-restic-secret
volumeSnapshotClassName: longhorn-snapshot-vsc
storageClassName: longhorn-static
moverSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
retain:
daily: 10
within: 3d

---
# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.26.1-standalone-strict/secret-v1.json
apiVersion: v1
kind: Secret
metadata:
name: plex-restic-secret
namespace: media
labels:
app.kubernetes.io/name: plex
type: Opaque
stringData:
RESTIC_REPOSITORY: ${SECRET_RESTIC_S3_REPO}/plex
RESTIC_PASSWORD: ${SECRET_RESTIC_PASSWORD}
AWS_ACCESS_KEY_ID: ${SECRET_RESTIC_S3_KEY}
AWS_SECRET_ACCESS_KEY: ${SECRET_RESTIC_S3_PASS}
RESTIC_PACK_SIZE: "60"
1 change: 1 addition & 0 deletions cluster/apps/media/tautulli/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helm-release.yaml
- volsync.yaml
41 changes: 41 additions & 0 deletions cluster/apps/media/tautulli/volsync.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
# yaml-language-server: $schema=https://schemas.budimanjojo.com/volsync.backube/replicationsource_v1alpha1.json
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: tautulli
namespace: media
spec:
sourcePVC: tautulli-config-pvc
trigger:
schedule: 0 2 * * *
restic:
copyMethod: Snapshot
pruneIntervalDays: 7
repository: tautulli-restic-secret
volumeSnapshotClassName: longhorn-snapshot-vsc
storageClassName: longhorn-static
moverSecurityContext:
runAsUser: 568
runAsGroup: 568
fsGroup: 568
retain:
daily: 10
within: 3d

---
# yaml-language-server: $schema=https://raw.githubusercontent.com/yannh/kubernetes-json-schema/master/v1.26.1-standalone-strict/secret-v1.json
apiVersion: v1
kind: Secret
metadata:
name: tautulli-restic-secret
namespace: media
labels:
app.kubernetes.io/name: tautulli
type: Opaque
stringData:
RESTIC_REPOSITORY: ${SECRET_RESTIC_S3_REPO}/tautulli
RESTIC_PASSWORD: ${SECRET_RESTIC_PASSWORD}
AWS_ACCESS_KEY_ID: ${SECRET_RESTIC_S3_KEY}
AWS_SECRET_ACCESS_KEY: ${SECRET_RESTIC_S3_PASS}
RESTIC_PACK_SIZE: "60"
4 changes: 2 additions & 2 deletions cluster/apps/networking/omada/volsync-data.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: omada-data
namespace: home
namespace: networking
spec:
sourcePVC: omada-data-pvc
trigger:
Expand All @@ -29,7 +29,7 @@ apiVersion: v1
kind: Secret
metadata:
name: omada-data-restic-secret
namespace: home
namespace: networking
type: Opaque
stringData:
RESTIC_REPOSITORY: ${SECRET_RESTIC_S3_REPO}/omada-data
Expand Down
4 changes: 2 additions & 2 deletions cluster/apps/networking/omada/volsync-logs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: omada-logs
namespace: home
namespace: networking
spec:
sourcePVC: omada-logs-pvc
trigger:
Expand All @@ -29,7 +29,7 @@ apiVersion: v1
kind: Secret
metadata:
name: omada-logs-restic-secret
namespace: home
namespace: networking
type: Opaque
stringData:
RESTIC_REPOSITORY: ${SECRET_RESTIC_S3_REPO}/omada-logs
Expand Down
4 changes: 2 additions & 2 deletions cluster/apps/networking/omada/volsync-work.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: omada-work
namespace: home
namespace: networking
spec:
sourcePVC: omada-work-pvc
trigger:
Expand All @@ -29,7 +29,7 @@ apiVersion: v1
kind: Secret
metadata:
name: omada-work-restic-secret
namespace: home
namespace: networking
type: Opaque
stringData:
RESTIC_REPOSITORY: ${SECRET_RESTIC_S3_REPO}/omada-work
Expand Down

0 comments on commit 4f2159e

Please sign in to comment.