pgo config

This commit is contained in:
Joseph Hanson 2024-01-03 22:02:23 -06:00
parent 451e12e389
commit 4f7de70406
5 changed files with 25 additions and 25 deletions

View file

@ -55,24 +55,7 @@ spec:
schedules: schedules:
full: "0 1 * * 0" full: "0 1 * * 0"
differential: "0 1 * * 1-6" differential: "0 1 * * 1-6"
valuesFrom: s3:
- targetPath: backups.pgbackrest.repos.repo1.s3.bucket bucket: "pgo-peertube-backup-v1"
kind: ConfigMap endpoint: "rook-ceph-rgw-ceph-objectstore.rook-ceph.svc"
name: pgo-peertube-backup-bucket-v1 region: ""
valuesKey: BUCKET_NAME
- targetPath: backups.pgbackrest.repos.repo1.s3.endpoint
kind: ConfigMap
name: pgo-peertube-backup-bucket-v1
valuesKey: BUCKET_HOST
- targetPath: backups.pgbackrest.repos.repo1.s3.region
kind: ConfigMap
name: pgo-peertube-backup-bucket-v1
valuesKey: BUCKET_REGION
- targetPath: objstoreConfig.config.access_key
kind: Secret
name: pgo-peertube-backup-bucket-v1
valuesKey: AWS_ACCESS_KEY_ID
- targetPath: objstoreConfig.config.secret_key
kind: Secret
name: pgo-peertube-backup-bucket-v1
valuesKey: AWS_SECRET_ACCESS_KEY

View file

@ -0,0 +1,17 @@
---
# yaml-language-server: $schema=https://ks.hsn.dev/kustomize.toolkit.fluxcd.io/kustomization_v1.json
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: cluster-apps-redis-peertube
namespace: flux-system
spec:
path: ./kubernetes/apps/peertube/peertube/redis/peertube
prune: true
sourceRef:
kind: GitRepository
name: valinor
wait: false
interval: 30m
retryInterval: 1m
timeout: 15m

View file

@ -26,16 +26,16 @@ spec:
data: data:
s3.conf: | s3.conf: |
[global] [global]
repo1-s3-key={{ .minio_crunchy_postgres_access_key }} repo1-s3-key={{ .pgo_crunchy_postgres_access_key }}
repo1-s3-key-secret={{ .minio_crunchy_postgres_secret_key }} repo1-s3-key-secret={{ .pgo_crunchy_postgres_secret_key }}
dataFrom: dataFrom:
- extract: - extract:
key: minio key: pgo-s3-creds
rewrite: rewrite:
- regexp: - regexp:
source: "[-]" source: "[-]"
target: "_" target: "_"
- regexp: - regexp:
source: "(.*)" source: "(.*)"
target: "minio_$1" target: "pgo_$1"