|
|
|
|
@@ -61,3 +61,391 @@ spec:
|
|
|
|
|
- name: config
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: libation
|
|
|
|
|
---
|
|
|
|
|
apiVersion: apps/v1
|
|
|
|
|
kind: Deployment
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation-debug
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/controller: debug
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
|
app.kubernetes.io/name: libation
|
|
|
|
|
helm.sh/chart: libation-4.6.2
|
|
|
|
|
namespace: libation
|
|
|
|
|
spec:
|
|
|
|
|
revisionHistoryLimit: 3
|
|
|
|
|
replicas: 0
|
|
|
|
|
strategy:
|
|
|
|
|
type: Recreate
|
|
|
|
|
selector:
|
|
|
|
|
matchLabels:
|
|
|
|
|
app.kubernetes.io/controller: debug
|
|
|
|
|
app.kubernetes.io/name: libation
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
template:
|
|
|
|
|
metadata:
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/controller: debug
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/name: libation
|
|
|
|
|
spec:
|
|
|
|
|
enableServiceLinks: false
|
|
|
|
|
serviceAccountName: default
|
|
|
|
|
automountServiceAccountToken: true
|
|
|
|
|
hostIPC: false
|
|
|
|
|
hostNetwork: false
|
|
|
|
|
hostPID: false
|
|
|
|
|
dnsPolicy: ClusterFirst
|
|
|
|
|
containers:
|
|
|
|
|
- command:
|
|
|
|
|
- sleep
|
|
|
|
|
- infinity
|
|
|
|
|
image: ubuntu:resolute-20260108
|
|
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
|
name: main
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
cpu: 10m
|
|
|
|
|
memory: 32Mi
|
|
|
|
|
volumeMounts:
|
|
|
|
|
- mountPath: /data
|
|
|
|
|
name: audiobooks
|
|
|
|
|
- mountPath: /config
|
|
|
|
|
name: config
|
|
|
|
|
volumes:
|
|
|
|
|
- name: audiobooks
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: libation-nfs-storage
|
|
|
|
|
- name: config
|
|
|
|
|
persistentVolumeClaim:
|
|
|
|
|
claimName: libation
|
|
|
|
|
---
|
|
|
|
|
apiVersion: external-secrets.io/v1
|
|
|
|
|
kind: ExternalSecret
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation-backup-secret-external
|
|
|
|
|
namespace: libation
|
|
|
|
|
labels:
|
|
|
|
|
helm.sh/chart: volsync-target-config-0.8.0
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/part-of: libation
|
|
|
|
|
app.kubernetes.io/version: "0.8.0"
|
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
|
app.kubernetes.io/name: libation-backup-secret-external
|
|
|
|
|
spec:
|
|
|
|
|
secretStoreRef:
|
|
|
|
|
kind: ClusterSecretStore
|
|
|
|
|
name: vault
|
|
|
|
|
target:
|
|
|
|
|
template:
|
|
|
|
|
mergePolicy: Merge
|
|
|
|
|
engineVersion: v2
|
|
|
|
|
data:
|
|
|
|
|
RESTIC_REPOSITORY: "{{ .BUCKET_ENDPOINT }}/libation/libation"
|
|
|
|
|
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
|
|
|
|
|
---
|
|
|
|
|
apiVersion: external-secrets.io/v1
|
|
|
|
|
kind: ExternalSecret
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation-backup-secret-local
|
|
|
|
|
namespace: libation
|
|
|
|
|
labels:
|
|
|
|
|
helm.sh/chart: volsync-target-config-0.8.0
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/part-of: libation
|
|
|
|
|
app.kubernetes.io/version: "0.8.0"
|
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
|
app.kubernetes.io/name: libation-backup-secret-local
|
|
|
|
|
spec:
|
|
|
|
|
secretStoreRef:
|
|
|
|
|
kind: ClusterSecretStore
|
|
|
|
|
name: vault
|
|
|
|
|
target:
|
|
|
|
|
template:
|
|
|
|
|
mergePolicy: Merge
|
|
|
|
|
engineVersion: v2
|
|
|
|
|
data:
|
|
|
|
|
RESTIC_REPOSITORY: "{{ .BUCKET_ENDPOINT }}/libation/libation"
|
|
|
|
|
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
|
|
|
|
|
---
|
|
|
|
|
apiVersion: external-secrets.io/v1
|
|
|
|
|
kind: ExternalSecret
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation-backup-secret-remote
|
|
|
|
|
namespace: libation
|
|
|
|
|
labels:
|
|
|
|
|
helm.sh/chart: volsync-target-config-0.8.0
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/part-of: libation
|
|
|
|
|
app.kubernetes.io/version: "0.8.0"
|
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
|
app.kubernetes.io/name: libation-backup-secret-remote
|
|
|
|
|
spec:
|
|
|
|
|
secretStoreRef:
|
|
|
|
|
kind: ClusterSecretStore
|
|
|
|
|
name: vault
|
|
|
|
|
target:
|
|
|
|
|
template:
|
|
|
|
|
mergePolicy: Merge
|
|
|
|
|
engineVersion: v2
|
|
|
|
|
data:
|
|
|
|
|
RESTIC_REPOSITORY: "{{ .BUCKET_ENDPOINT }}/libation/libation"
|
|
|
|
|
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
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: PersistentVolume
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation-nfs-storage
|
|
|
|
|
namespace: libation
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/name: libation-nfs-storage
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/part-of: libation
|
|
|
|
|
spec:
|
|
|
|
|
persistentVolumeReclaimPolicy: Retain
|
|
|
|
|
storageClassName: nfs-client
|
|
|
|
|
capacity:
|
|
|
|
|
storage: 1Gi
|
|
|
|
|
accessModes:
|
|
|
|
|
- ReadWriteMany
|
|
|
|
|
nfs:
|
|
|
|
|
path: /volume2/Storage/Audiobooks/
|
|
|
|
|
server: synologybond.alexlebens.net
|
|
|
|
|
mountOptions:
|
|
|
|
|
- vers=4
|
|
|
|
|
- minorversion=1
|
|
|
|
|
- noac
|
|
|
|
|
---
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation-nfs-storage
|
|
|
|
|
namespace: libation
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/name: libation-nfs-storage
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/part-of: libation
|
|
|
|
|
spec:
|
|
|
|
|
volumeName: libation-nfs-storage
|
|
|
|
|
storageClassName: nfs-client
|
|
|
|
|
accessModes:
|
|
|
|
|
- ReadWriteMany
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
storage: 1Gi
|
|
|
|
|
---
|
|
|
|
|
kind: PersistentVolumeClaim
|
|
|
|
|
apiVersion: v1
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation
|
|
|
|
|
labels:
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
|
app.kubernetes.io/name: libation
|
|
|
|
|
helm.sh/chart: libation-4.6.2
|
|
|
|
|
annotations:
|
|
|
|
|
helm.sh/resource-policy: keep
|
|
|
|
|
namespace: libation
|
|
|
|
|
spec:
|
|
|
|
|
accessModes:
|
|
|
|
|
- "ReadWriteOnce"
|
|
|
|
|
resources:
|
|
|
|
|
requests:
|
|
|
|
|
storage: "500Mi"
|
|
|
|
|
storageClassName: "ceph-block"
|
|
|
|
|
---
|
|
|
|
|
apiVersion: volsync.backube/v1alpha1
|
|
|
|
|
kind: ReplicationSource
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation-backup-source-external
|
|
|
|
|
namespace: libation
|
|
|
|
|
labels:
|
|
|
|
|
helm.sh/chart: volsync-target-config-0.8.0
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/part-of: libation
|
|
|
|
|
app.kubernetes.io/version: "0.8.0"
|
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
|
app.kubernetes.io/name: libation-backup
|
|
|
|
|
spec:
|
|
|
|
|
sourcePVC: libation
|
|
|
|
|
trigger:
|
|
|
|
|
schedule: 32 10 * * *
|
|
|
|
|
restic:
|
|
|
|
|
pruneIntervalDays: 7
|
|
|
|
|
repository: libation-backup-secret-external
|
|
|
|
|
retain:
|
|
|
|
|
daily: 7
|
|
|
|
|
hourly: 0
|
|
|
|
|
monthly: 3
|
|
|
|
|
weekly: 4
|
|
|
|
|
yearly: 1
|
|
|
|
|
copyMethod: Snapshot
|
|
|
|
|
storageClassName: ceph-block
|
|
|
|
|
volumeSnapshotClassName: ceph-blockpool-snapshot
|
|
|
|
|
cacheCapacity: 1Gi
|
|
|
|
|
---
|
|
|
|
|
apiVersion: volsync.backube/v1alpha1
|
|
|
|
|
kind: ReplicationSource
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation-backup-source-local
|
|
|
|
|
namespace: libation
|
|
|
|
|
labels:
|
|
|
|
|
helm.sh/chart: volsync-target-config-0.8.0
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/part-of: libation
|
|
|
|
|
app.kubernetes.io/version: "0.8.0"
|
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
|
app.kubernetes.io/name: libation-backup
|
|
|
|
|
spec:
|
|
|
|
|
sourcePVC: libation
|
|
|
|
|
trigger:
|
|
|
|
|
schedule: 32 8 * * *
|
|
|
|
|
restic:
|
|
|
|
|
pruneIntervalDays: 7
|
|
|
|
|
repository: libation-backup-secret-local
|
|
|
|
|
retain:
|
|
|
|
|
daily: 7
|
|
|
|
|
hourly: 0
|
|
|
|
|
monthly: 3
|
|
|
|
|
weekly: 4
|
|
|
|
|
yearly: 1
|
|
|
|
|
copyMethod: Snapshot
|
|
|
|
|
storageClassName: ceph-block
|
|
|
|
|
volumeSnapshotClassName: ceph-blockpool-snapshot
|
|
|
|
|
cacheCapacity: 1Gi
|
|
|
|
|
---
|
|
|
|
|
apiVersion: volsync.backube/v1alpha1
|
|
|
|
|
kind: ReplicationSource
|
|
|
|
|
metadata:
|
|
|
|
|
name: libation-backup-source-remote
|
|
|
|
|
namespace: libation
|
|
|
|
|
labels:
|
|
|
|
|
helm.sh/chart: volsync-target-config-0.8.0
|
|
|
|
|
app.kubernetes.io/instance: libation
|
|
|
|
|
app.kubernetes.io/part-of: libation
|
|
|
|
|
app.kubernetes.io/version: "0.8.0"
|
|
|
|
|
app.kubernetes.io/managed-by: Helm
|
|
|
|
|
app.kubernetes.io/name: libation-backup
|
|
|
|
|
spec:
|
|
|
|
|
sourcePVC: libation
|
|
|
|
|
trigger:
|
|
|
|
|
schedule: 32 9 * * *
|
|
|
|
|
restic:
|
|
|
|
|
pruneIntervalDays: 7
|
|
|
|
|
repository: libation-backup-secret-remote
|
|
|
|
|
retain:
|
|
|
|
|
daily: 7
|
|
|
|
|
hourly: 0
|
|
|
|
|
monthly: 3
|
|
|
|
|
weekly: 4
|
|
|
|
|
yearly: 1
|
|
|
|
|
copyMethod: Snapshot
|
|
|
|
|
storageClassName: ceph-block
|
|
|
|
|
volumeSnapshotClassName: ceph-blockpool-snapshot
|
|
|
|
|
cacheCapacity: 1Gi
|
|
|
|
|
|