diff --git a/clusters/cl01tl/manifests/garage/Deployment-garage-main.yaml b/clusters/cl01tl/manifests/garage/Deployment-garage-main.yaml index 29743a868..0b0c99594 100644 --- a/clusters/cl01tl/manifests/garage/Deployment-garage-main.yaml +++ b/clusters/cl01tl/manifests/garage/Deployment-garage-main.yaml @@ -54,7 +54,7 @@ spec: subPath: garage.toml - mountPath: /var/lib/garage/data name: data - - mountPath: /var/lib/garage/meta + - mountPath: /db name: db - mountPath: /var/lib/garage/snapshots name: snapshots @@ -76,7 +76,7 @@ spec: subPath: garage.toml - mountPath: /var/lib/garage/data name: data - - mountPath: /var/lib/garage/meta + - mountPath: /db name: db - mountPath: /var/lib/garage/snapshots name: snapshots diff --git a/clusters/cl01tl/manifests/garage/Deployment-garage-webui.yaml b/clusters/cl01tl/manifests/garage/Deployment-garage-webui.yaml index 27e32ac29..f43da4fea 100644 --- a/clusters/cl01tl/manifests/garage/Deployment-garage-webui.yaml +++ b/clusters/cl01tl/manifests/garage/Deployment-garage-webui.yaml @@ -59,7 +59,12 @@ spec: name: config readOnly: true subPath: garage.toml + - mountPath: /db + name: db volumes: - configMap: name: garage name: config + - name: db + persistentVolumeClaim: + claimName: garage-db diff --git a/clusters/cl01tl/manifests/garage/ReplicationDestination-garage-db.yaml b/clusters/cl01tl/manifests/garage/ReplicationDestination-garage-db.yaml new file mode 100644 index 000000000..00e023f0e --- /dev/null +++ b/clusters/cl01tl/manifests/garage/ReplicationDestination-garage-db.yaml @@ -0,0 +1,16 @@ +apiVersion: volsync.backube/v1alpha1 +kind: ReplicationDestination +metadata: + name: garage-db + namespace: garage + labels: + app.kubernetes.io/name: garage-db + app.kubernetes.io/instance: garage + app.kubernetes.io/part-of: garage +spec: + trigger: + manual: restore-once + restic: + repository: garage-db-backup-secret-external + destinationPVC: garage-db + copyMethod: Direct