diff --git a/clusters/cl01tl/manifests/huntarr/ExternalSecret-huntarr-config-backup-secret-external.yaml b/clusters/cl01tl/manifests/huntarr/ExternalSecret-huntarr-config-backup-secret-external.yaml new file mode 100644 index 000000000..e237c812d --- /dev/null +++ b/clusters/cl01tl/manifests/huntarr/ExternalSecret-huntarr-config-backup-secret-external.yaml @@ -0,0 +1,58 @@ +apiVersion: external-secrets.io/v1 +kind: ExternalSecret +metadata: + name: huntarr-config-backup-secret-external + namespace: huntarr + labels: + helm.sh/chart: volsync-target-config-0.5.0 + app.kubernetes.io/instance: huntarr + app.kubernetes.io/part-of: huntarr + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: huntarr-config-backup-secret-external +spec: + secretStoreRef: + kind: ClusterSecretStore + name: vault + target: + template: + mergePolicy: Merge + engineVersion: v2 + data: + RESTIC_REPOSITORY: "{{ .BUCKET_ENDPOINT }}/huntarr/huntarr-config" + data: + - secretKey: BUCKET_ENDPOINT + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /volsync/restic/digital-ocean + metadataPolicy: None + property: BUCKET_ENDPOINT + - secretKey: RESTIC_PASSWORD + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /volsync/restic/digital-ocean + metadataPolicy: None + property: RESTIC_PASSWORD + - secretKey: AWS_DEFAULT_REGION + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /digital-ocean/home-infra/volsync-backups + metadataPolicy: None + property: AWS_DEFAULT_REGION + - secretKey: AWS_ACCESS_KEY_ID + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /digital-ocean/home-infra/volsync-backups + metadataPolicy: None + property: AWS_ACCESS_KEY_ID + - secretKey: AWS_SECRET_ACCESS_KEY + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /digital-ocean/home-infra/volsync-backups + metadataPolicy: None + property: AWS_SECRET_ACCESS_KEY diff --git a/clusters/cl01tl/manifests/huntarr/ExternalSecret-huntarr-config-backup-secret-local.yaml b/clusters/cl01tl/manifests/huntarr/ExternalSecret-huntarr-config-backup-secret-local.yaml new file mode 100644 index 000000000..a8af30840 --- /dev/null +++ b/clusters/cl01tl/manifests/huntarr/ExternalSecret-huntarr-config-backup-secret-local.yaml @@ -0,0 +1,58 @@ +apiVersion: external-secrets.io/v1 +kind: ExternalSecret +metadata: + name: huntarr-config-backup-secret-local + namespace: huntarr + labels: + helm.sh/chart: volsync-target-config-0.5.0 + app.kubernetes.io/instance: huntarr + app.kubernetes.io/part-of: huntarr + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: huntarr-config-backup-secret-local +spec: + secretStoreRef: + kind: ClusterSecretStore + name: vault + target: + template: + mergePolicy: Merge + engineVersion: v2 + data: + RESTIC_REPOSITORY: "{{ .BUCKET_ENDPOINT }}/huntarr/huntarr-config" + data: + - secretKey: BUCKET_ENDPOINT + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /volsync/restic/garage-local + metadataPolicy: None + property: BUCKET_ENDPOINT + - secretKey: RESTIC_PASSWORD + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /volsync/restic/garage-local + metadataPolicy: None + property: RESTIC_PASSWORD + - secretKey: AWS_DEFAULT_REGION + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /garage/home-infra/volsync-backups + metadataPolicy: None + property: ACCESS_REGION + - secretKey: AWS_ACCESS_KEY_ID + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /garage/home-infra/volsync-backups + metadataPolicy: None + property: ACCESS_KEY_ID + - secretKey: AWS_SECRET_ACCESS_KEY + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /garage/home-infra/volsync-backups + metadataPolicy: None + property: ACCESS_SECRET_KEY diff --git a/clusters/cl01tl/manifests/huntarr/ExternalSecret-huntarr-config-backup-secret-remote.yaml b/clusters/cl01tl/manifests/huntarr/ExternalSecret-huntarr-config-backup-secret-remote.yaml new file mode 100644 index 000000000..b29201ed5 --- /dev/null +++ b/clusters/cl01tl/manifests/huntarr/ExternalSecret-huntarr-config-backup-secret-remote.yaml @@ -0,0 +1,58 @@ +apiVersion: external-secrets.io/v1 +kind: ExternalSecret +metadata: + name: huntarr-config-backup-secret-remote + namespace: huntarr + labels: + helm.sh/chart: volsync-target-config-0.5.0 + app.kubernetes.io/instance: huntarr + app.kubernetes.io/part-of: huntarr + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: huntarr-config-backup-secret-remote +spec: + secretStoreRef: + kind: ClusterSecretStore + name: vault + target: + template: + mergePolicy: Merge + engineVersion: v2 + data: + RESTIC_REPOSITORY: "{{ .BUCKET_ENDPOINT }}/huntarr/huntarr-config" + data: + - secretKey: BUCKET_ENDPOINT + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /volsync/restic/garage-remote + metadataPolicy: None + property: BUCKET_ENDPOINT + - secretKey: RESTIC_PASSWORD + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /volsync/restic/garage-remote + metadataPolicy: None + property: RESTIC_PASSWORD + - secretKey: AWS_DEFAULT_REGION + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /garage/home-infra/volsync-backups + metadataPolicy: None + property: ACCESS_REGION + - secretKey: AWS_ACCESS_KEY_ID + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /garage/home-infra/volsync-backups + metadataPolicy: None + property: ACCESS_KEY_ID + - secretKey: AWS_SECRET_ACCESS_KEY + remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: /garage/home-infra/volsync-backups + metadataPolicy: None + property: ACCESS_SECRET_KEY diff --git a/clusters/cl01tl/manifests/huntarr/ReplicationSource-huntarr-config-backup-source-external.yaml b/clusters/cl01tl/manifests/huntarr/ReplicationSource-huntarr-config-backup-source-external.yaml new file mode 100644 index 000000000..33e6bfa59 --- /dev/null +++ b/clusters/cl01tl/manifests/huntarr/ReplicationSource-huntarr-config-backup-source-external.yaml @@ -0,0 +1,29 @@ +apiVersion: volsync.backube/v1alpha1 +kind: ReplicationSource +metadata: + name: huntarr-config-backup-source-external + namespace: huntarr + labels: + helm.sh/chart: volsync-target-config-0.5.0 + app.kubernetes.io/instance: huntarr + app.kubernetes.io/part-of: huntarr + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: huntarr-config-backup +spec: + sourcePVC: huntarr-config + trigger: + schedule: 0 4 * * * + restic: + pruneIntervalDays: 7 + repository: huntarr-config-backup-secret-external + retain: + daily: 3 + hourly: 1 + monthly: 2 + weekly: 2 + yearly: 4 + copyMethod: Snapshot + storageClassName: ceph-block + volumeSnapshotClassName: ceph-blockpool-snapshot + cacheCapacity: 1Gi diff --git a/clusters/cl01tl/manifests/huntarr/ReplicationSource-huntarr-config-backup-source-local.yaml b/clusters/cl01tl/manifests/huntarr/ReplicationSource-huntarr-config-backup-source-local.yaml new file mode 100644 index 000000000..5634c3519 --- /dev/null +++ b/clusters/cl01tl/manifests/huntarr/ReplicationSource-huntarr-config-backup-source-local.yaml @@ -0,0 +1,29 @@ +apiVersion: volsync.backube/v1alpha1 +kind: ReplicationSource +metadata: + name: huntarr-config-backup-source-local + namespace: huntarr + labels: + helm.sh/chart: volsync-target-config-0.5.0 + app.kubernetes.io/instance: huntarr + app.kubernetes.io/part-of: huntarr + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: huntarr-config-backup +spec: + sourcePVC: huntarr-config + trigger: + schedule: 0 2 * * * + restic: + pruneIntervalDays: 7 + repository: huntarr-config-backup-secret-local + retain: + daily: 3 + hourly: 1 + monthly: 2 + weekly: 2 + yearly: 4 + copyMethod: Snapshot + storageClassName: ceph-block + volumeSnapshotClassName: ceph-blockpool-snapshot + cacheCapacity: 1Gi diff --git a/clusters/cl01tl/manifests/huntarr/ReplicationSource-huntarr-config-backup-source-remote.yaml b/clusters/cl01tl/manifests/huntarr/ReplicationSource-huntarr-config-backup-source-remote.yaml new file mode 100644 index 000000000..cd551e091 --- /dev/null +++ b/clusters/cl01tl/manifests/huntarr/ReplicationSource-huntarr-config-backup-source-remote.yaml @@ -0,0 +1,29 @@ +apiVersion: volsync.backube/v1alpha1 +kind: ReplicationSource +metadata: + name: huntarr-config-backup-source-remote + namespace: huntarr + labels: + helm.sh/chart: volsync-target-config-0.5.0 + app.kubernetes.io/instance: huntarr + app.kubernetes.io/part-of: huntarr + app.kubernetes.io/version: "0.5.0" + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: huntarr-config-backup +spec: + sourcePVC: huntarr-config + trigger: + schedule: 0 3 * * * + restic: + pruneIntervalDays: 7 + repository: huntarr-config-backup-secret-remote + retain: + daily: 3 + hourly: 1 + monthly: 2 + weekly: 2 + yearly: 4 + copyMethod: Snapshot + storageClassName: ceph-block + volumeSnapshotClassName: ceph-blockpool-snapshot + cacheCapacity: 1Gi