From 42c45b89b11689c956979a0e4d3e5da1b2650bac Mon Sep 17 00:00:00 2001 From: William P Date: Sat, 23 Aug 2025 00:12:11 -0400 Subject: [PATCH] add peertube db --- postgres/config/clusters/main.yaml | 8 +++++++- postgres/config/databases/peertube.yaml | 9 +++++++++ postgres/config/peertube_auth.yaml | 25 +++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 postgres/config/databases/peertube.yaml create mode 100644 postgres/config/peertube_auth.yaml diff --git a/postgres/config/clusters/main.yaml b/postgres/config/clusters/main.yaml index 10a78b8..d7e0817 100644 --- a/postgres/config/clusters/main.yaml +++ b/postgres/config/clusters/main.yaml @@ -47,4 +47,10 @@ spec: comment: gitea login: true passwordSecret: - name: gitea-auth \ No newline at end of file + name: gitea-auth + - name: peertube + ensure: present + comment: peertube + login: true + passwordSecret: + name: peertube-auth \ No newline at end of file diff --git a/postgres/config/databases/peertube.yaml b/postgres/config/databases/peertube.yaml new file mode 100644 index 0000000..37fd84a --- /dev/null +++ b/postgres/config/databases/peertube.yaml @@ -0,0 +1,9 @@ +apiVersion: postgresql.cnpg.io/v1 +kind: Database +metadata: + name: peertube +spec: + name: peertube + owner: peertube + cluster: + name: weyma-pgsql \ No newline at end of file diff --git a/postgres/config/peertube_auth.yaml b/postgres/config/peertube_auth.yaml new file mode 100644 index 0000000..3a5594c --- /dev/null +++ b/postgres/config/peertube_auth.yaml @@ -0,0 +1,25 @@ +apiVersion: external-secrets.io/v1 +kind: ExternalSecret +metadata: + name: peertube-auth +spec: + data: + - remoteRef: + conversionStrategy: Default + decodingStrategy: None + key: cloudnativepg + metadataPolicy: None + property: peertube_pw + secretKey: password + refreshInterval: 1h + secretStoreRef: + kind: ClusterSecretStore + name: weyma-vault + target: + template: + data: + username: peertube + password: "{{ .password }}" + creationPolicy: Owner + deletionPolicy: Retain + name: peertube-auth