Migrate Prowlarr to main postgres server.
This commit is contained in:
parent
d37ca6d1f0
commit
6d5ca1c644
3 changed files with 3 additions and 103 deletions
|
@ -14,6 +14,9 @@ spec:
|
||||||
engineVersion: v2
|
engineVersion: v2
|
||||||
data:
|
data:
|
||||||
PROWLARR__API_KEY: "{{ .api_key }}"
|
PROWLARR__API_KEY: "{{ .api_key }}"
|
||||||
|
PROWLARR__POSTGRES_HOST: "{{ .PROWLARR__POSTGRES_HOST}}"
|
||||||
|
PROWLARR__POSTGRES_USER: "{{ .PROWLARR__POSTGRES_USER }}"
|
||||||
|
PROWLARR__POSTGRES_PASSWORD: "{{ .PROWLARR__POSTGRES_PASSWORD }}"
|
||||||
dataFrom:
|
dataFrom:
|
||||||
- extract:
|
- extract:
|
||||||
key: prowlarr
|
key: prowlarr
|
||||||
|
|
|
@ -42,22 +42,6 @@ spec:
|
||||||
PROWLARR__AUTHENTICATION_METHOD: External
|
PROWLARR__AUTHENTICATION_METHOD: External
|
||||||
PROWLARR__THEME: dark
|
PROWLARR__THEME: dark
|
||||||
TZ: America/Chicago
|
TZ: America/Chicago
|
||||||
PROWLARR__POSTGRES_HOST:
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: "${APP}-pguser-${DB_USER}"
|
|
||||||
key: host
|
|
||||||
PROWLARR__POSTGRES_PORT: "5432"
|
|
||||||
PROWLARR__POSTGRES_USER:
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: "${APP}-pguser-${DB_USER}"
|
|
||||||
key: user
|
|
||||||
PROWLARR__POSTGRES_PASSWORD:
|
|
||||||
valueFrom:
|
|
||||||
secretKeyRef:
|
|
||||||
name: "${APP}-pguser-${DB_USER}"
|
|
||||||
key: password
|
|
||||||
PROWLARR__POSTGRES_MAIN_DB: prowlarr_main
|
PROWLARR__POSTGRES_MAIN_DB: prowlarr_main
|
||||||
PROWLARR__POSTGRES_LOG_DB: prowlarr_logs
|
PROWLARR__POSTGRES_LOG_DB: prowlarr_logs
|
||||||
envFrom:
|
envFrom:
|
||||||
|
|
|
@ -1,87 +0,0 @@
|
||||||
---
|
|
||||||
# yaml-language-server: $schema=https://ks.hsn.dev/postgres-operator.crunchydata.com/postgrescluster_v1beta1.json
|
|
||||||
apiVersion: postgres-operator.crunchydata.com/v1beta1
|
|
||||||
kind: PostgresCluster
|
|
||||||
metadata:
|
|
||||||
name: "${APP}"
|
|
||||||
spec:
|
|
||||||
postgresVersion: 16
|
|
||||||
dataSource:
|
|
||||||
pgbackrest:
|
|
||||||
stanza: db
|
|
||||||
configuration:
|
|
||||||
- secret:
|
|
||||||
name: pgo-s3-creds
|
|
||||||
global:
|
|
||||||
repo1-path: "/${APP}/repo1"
|
|
||||||
repo1-s3-uri-style: path
|
|
||||||
repo:
|
|
||||||
name: repo1
|
|
||||||
s3:
|
|
||||||
bucket: "crunchy-postgres"
|
|
||||||
endpoint: "s3.hsn.dev"
|
|
||||||
region: "us-east-1"
|
|
||||||
patroni:
|
|
||||||
dynamicConfiguration:
|
|
||||||
synchronous_mode: true
|
|
||||||
postgresql:
|
|
||||||
synchronous_commit: "on"
|
|
||||||
pg_hba:
|
|
||||||
- hostnossl all all 10.32.0.0/16 md5
|
|
||||||
- hostssl all all all md5
|
|
||||||
instances:
|
|
||||||
- name: postgres
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: pgo-${APP}
|
|
||||||
replicas: 2
|
|
||||||
dataVolumeClaimSpec:
|
|
||||||
storageClassName: openebs-hostpath
|
|
||||||
accessModes:
|
|
||||||
- ReadWriteOnce
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: 5Gi
|
|
||||||
topologySpreadConstraints:
|
|
||||||
- maxSkew: 1
|
|
||||||
topologyKey: "kubernetes.io/hostname"
|
|
||||||
whenUnsatisfiable: "DoNotSchedule"
|
|
||||||
labelSelector:
|
|
||||||
matchLabels:
|
|
||||||
postgres-operator.crunchydata.com/cluster: ${APP}
|
|
||||||
postgres-operator.crunchydata.com/data: postgres
|
|
||||||
users:
|
|
||||||
- name: "${DB_USER}"
|
|
||||||
databases:
|
|
||||||
- "prowlarr_main"
|
|
||||||
- "prowlarr_logs"
|
|
||||||
options: "SUPERUSER"
|
|
||||||
password:
|
|
||||||
type: AlphaNumeric
|
|
||||||
backups:
|
|
||||||
pgbackrest:
|
|
||||||
configuration:
|
|
||||||
- secret:
|
|
||||||
name: pgo-s3-creds
|
|
||||||
global:
|
|
||||||
archive-push-queue-max: 4GiB
|
|
||||||
repo1-retention-full: "14"
|
|
||||||
repo1-retention-full-type: time
|
|
||||||
repo1-path: "/${APP}/repo1"
|
|
||||||
repo1-s3-uri-style: path
|
|
||||||
manual:
|
|
||||||
repoName: repo1
|
|
||||||
options:
|
|
||||||
- --type=full
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: pgo-${APP}-backup
|
|
||||||
repos:
|
|
||||||
- name: repo1
|
|
||||||
schedules:
|
|
||||||
full: "0 1 * * 0"
|
|
||||||
differential: "0 1 * * 1-6"
|
|
||||||
s3:
|
|
||||||
bucket: "crunchy-postgres"
|
|
||||||
endpoint: "s3.hsn.dev"
|
|
||||||
region: "us-east-1"
|
|
Loading…
Reference in a new issue