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

Commit

Permalink
volsync-nas remainder
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsumaui committed Nov 27, 2023
1 parent eea1521 commit 11c8a47
Show file tree
Hide file tree
Showing 8 changed files with 211 additions and 1 deletion.
1 change: 1 addition & 0 deletions cluster/apps/media/plex/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ kind: Kustomization
resources:
- helm-release.yaml
- volsync.yaml
- volsync-nas.yaml
41 changes: 41 additions & 0 deletions cluster/apps/media/plex/volsync-nas.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-nas
namespace: media
spec:
sourcePVC: plex-config-pvc
trigger:
schedule: "0 */6 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 7
repository: plex-restic-nas-secret
volumeSnapshotClassName: longhorn-snapshot-vsc
storageClassName: longhorn-volsync
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-nas-secret
namespace: media
labels:
app.kubernetes.io/name: plex
type: Opaque
stringData:
RESTIC_REPOSITORY: s3:http://minio.default.svc.cluster.local:9000/restic-home-cluster/plex
RESTIC_PASSWORD: ${SECRET_RESTIC_PASSWORD}
AWS_ACCESS_KEY_ID: ${SECRET_NAS_MINIO_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${SECRET_NAS_MINIO_SECRET_KEY}
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 @@ -3,3 +3,4 @@ kind: Kustomization
resources:
- helm-release.yaml
- volsync.yaml
- volsync-nas.yaml
41 changes: 41 additions & 0 deletions cluster/apps/media/tautulli/volsync-nas.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-nas
namespace: media
spec:
sourcePVC: tautulli-config-pvc
trigger:
schedule: "0 */6 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 7
repository: tautulli-restic-nas-secret
volumeSnapshotClassName: longhorn-snapshot-vsc
storageClassName: longhorn-volsync
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-nas-secret
namespace: media
labels:
app.kubernetes.io/name: tautulli
type: Opaque
stringData:
RESTIC_REPOSITORY: s3:http://minio.default.svc.cluster.local:9000/restic-home-cluster/tautulli
RESTIC_PASSWORD: ${SECRET_RESTIC_PASSWORD}
AWS_ACCESS_KEY_ID: ${SECRET_NAS_MINIO_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${SECRET_NAS_MINIO_SECRET_KEY}
RESTIC_PACK_SIZE: "60"
5 changes: 4 additions & 1 deletion cluster/apps/networking/omada/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ resources:
- helm-release.yaml
- volsync-data.yaml
- volsync-logs.yaml
- volsync-work.yaml
- volsync-work.yaml
- volsync-data-nas.yaml
- volsync-logs-nas.yaml
- volsync-work-nas.yaml
41 changes: 41 additions & 0 deletions cluster/apps/networking/omada/volsync-data-nas.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: omada-data-nas
namespace: networking
spec:
sourcePVC: omada-data-pvc
trigger:
schedule: "0 */6 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 7
repository: omada-data-restic-nas-secret
volumeSnapshotClassName: longhorn-snapshot-vsc
storageClassName: longhorn-volsync
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: omada-data-restic-nas-secret
namespace: networking
labels:
app.kubernetes.io/name: omada-data
type: Opaque
stringData:
RESTIC_REPOSITORY: s3:http://minio.default.svc.cluster.local:9000/restic-home-cluster/omada-data
RESTIC_PASSWORD: ${SECRET_RESTIC_PASSWORD}
AWS_ACCESS_KEY_ID: ${SECRET_NAS_MINIO_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${SECRET_NAS_MINIO_SECRET_KEY}
RESTIC_PACK_SIZE: "60"
41 changes: 41 additions & 0 deletions cluster/apps/networking/omada/volsync-logs-nas.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: omada-logs-nas
namespace: networking
spec:
sourcePVC: omada-logs-pvc
trigger:
schedule: "0 */6 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 7
repository: omada-logs-restic-nas-secret
volumeSnapshotClassName: longhorn-snapshot-vsc
storageClassName: longhorn-volsync
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: omada-logs-restic-nas-secret
namespace: networking
labels:
app.kubernetes.io/name: omada-logs
type: Opaque
stringData:
RESTIC_REPOSITORY: s3:http://minio.default.svc.cluster.local:9000/restic-home-cluster/omada-logs
RESTIC_PASSWORD: ${SECRET_RESTIC_PASSWORD}
AWS_ACCESS_KEY_ID: ${SECRET_NAS_MINIO_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${SECRET_NAS_MINIO_SECRET_KEY}
RESTIC_PACK_SIZE: "60"
41 changes: 41 additions & 0 deletions cluster/apps/networking/omada/volsync-work-nas.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: omada-work-nas
namespace: networking
spec:
sourcePVC: omada-work-pvc
trigger:
schedule: "0 */6 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 7
repository: omada-work-restic-nas-secret
volumeSnapshotClassName: longhorn-snapshot-vsc
storageClassName: longhorn-volsync
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: omada-work-restic-nas-secret
namespace: networking
labels:
app.kubernetes.io/name: omada-work
type: Opaque
stringData:
RESTIC_REPOSITORY: s3:http://minio.default.svc.cluster.local:9000/restic-home-cluster/omada-work
RESTIC_PASSWORD: ${SECRET_RESTIC_PASSWORD}
AWS_ACCESS_KEY_ID: ${SECRET_NAS_MINIO_ACCESS_KEY}
AWS_SECRET_ACCESS_KEY: ${SECRET_NAS_MINIO_SECRET_KEY}
RESTIC_PACK_SIZE: "60"

0 comments on commit 11c8a47

Please sign in to comment.