🩹 bootstrap

This commit is contained in:
auricom
2022-12-30 04:29:45 +01:00
parent 4412515cc6
commit e7db09f87f
19 changed files with 76 additions and 36 deletions

View File

@@ -24,7 +24,7 @@ spec:
maxParallel: 8
destinationPath: s3://postgresql/
endpointURL: https://truenas.${SECRET_DOMAIN}:51515
serverName: postgres-v4
serverName: postgres-v5
s3Credentials:
accessKeyId:
name: postgres-minio
@@ -32,20 +32,20 @@ spec:
secretAccessKey:
name: postgres-minio
key: MINIO_SECRET_KEY
# bootstrap:
# recovery:
# source: postgres
# externalClusters:
# - name: postgres
# barmanObjectStore:
# destinationPath: s3://postgresql/
# endpointURL: https://truenas.${SECRET_DOMAIN}:51515
# s3Credentials:
# accessKeyId:
# name: postgres-minio
# key: MINIO_ACCESS_KEY
# secretAccessKey:
# name: postgres-minio
# key: MINIO_SECRET_KEY
# wal:
# maxParallel: 8
bootstrap:
recovery:
source: postgres-v4
externalClusters:
- name: postgres-v4
barmanObjectStore:
destinationPath: s3://postgresql/
endpointURL: https://truenas.${SECRET_DOMAIN}:51515
s3Credentials:
accessKeyId:
name: postgres-minio
key: MINIO_ACCESS_KEY
secretAccessKey:
name: postgres-minio
key: MINIO_SECRET_KEY
wal:
maxParallel: 8

View File

@@ -5,4 +5,3 @@ kind: Kustomization
namespace: default
resources:
- ./helmrelease.yaml
- ./secret.sops.yaml

View File

@@ -5,3 +5,4 @@ kind: Kustomization
namespace: default
resources:
- ./helmrelease.yaml
- ./secret.sops.yaml

View File

@@ -4,6 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: default
resources:
- ./backups
- ./helmrelease.yaml
- ./secret.sops.yaml
- ./volume.yaml

View File

@@ -0,0 +1,23 @@
---
# yaml-language-server: $schema=https://kubernetes-schemas.devbu.io/replicationsource_v1alpha1.json
apiVersion: volsync.backube/v1alpha1
kind: ReplicationSource
metadata:
name: unifi
namespace: default
spec:
sourcePVC: unifi-config
trigger:
schedule: "0 0 * * *"
restic:
copyMethod: Snapshot
pruneIntervalDays: 10
repository: bazarr-restic-secret
cacheCapacity: 2Gi
volumeSnapshotClassName: csi-ceph-blockpool
storageClassName: rook-ceph-block
retain:
hourly: 0
daily: 10
weekly: 0
monthly: 0