Change database hosts.

This commit is contained in:
Joseph Hanson 2023-11-07 14:03:31 -06:00
parent f90146468d
commit d6fe248e14
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 9 additions and 16 deletions

View file

@ -37,6 +37,9 @@ spec:
PEERTUBE_OBJECT_STORAGE_STREAMING_PLAYLISTS_PREFIX: ""
PEERTUBE_OBJECT_STORAGE_VIDEOS_BUCKET_NAME: "khazadtube-videos"
PEERTUBE_OBJECT_STORAGE_VIDEOS_PREFIX: ""
PEERTUBE_DB_HOSTNAME: "{{ .crunchy_peertube_hostname }}"
PEERTUBE_DB_USERNAME: "{{ .crunchy_peertube_username }}"
PEERTUBE_DB_PASSWORD: "{{ .crunchy_peertube_password }}"
dataFrom:
- extract:
@ -51,6 +54,12 @@ spec:
- regexp:
source: "(.*)"
target: "peertube_$1"
- extract:
key: crunchybridge
rewrite:
- regexp:
source: "(.*)"
target: "crunchy_$1"
data:
- secretKey: mailgun_smtp_user
remoteRef:

View file

@ -28,22 +28,6 @@ spec:
repository: ghcr.io/jahanson/peertube-server
tag: v5.2.1
pullPolicy: Always
env:
PEERTUBE_DB_HOSTNAME:
valueFrom:
secretKeyRef:
name: peertube-pguser-peertube
key: host
PEERTUBE_DB_USERNAME:
valueFrom:
secretKeyRef:
name: peertube-pguser-peertube
key: user
PEERTUBE_DB_PASSWORD:
valueFrom:
secretKeyRef:
name: peertube-pguser-peertube
key: password
envFrom:
- secretRef:
name: peertube-secret