Update config for new more reliable db service.
This commit is contained in:
parent
95d975c177
commit
ba0bfb00e9
3 changed files with 21 additions and 1 deletions
19
kubernetes/apps/media/immich/app/externalsecret.yaml
Normal file
19
kubernetes/apps/media/immich/app/externalsecret.yaml
Normal file
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
# yaml-language-server: $schema=https://ks.hsn.dev/external-secrets.io/externalsecret_v1beta1.json
|
||||
apiVersion: external-secrets.io/v1beta1
|
||||
kind: ExternalSecret
|
||||
metadata:
|
||||
name: immich
|
||||
spec:
|
||||
secretStoreRef:
|
||||
kind: ClusterSecretStore
|
||||
name: onepassword-connect
|
||||
target:
|
||||
name: immich-secret
|
||||
template:
|
||||
engineVersion: v2
|
||||
data:
|
||||
DATABASE_URI: "postgresql://{{ .user }}:{{ .password }}@immich-primary-real.media.svc:{{ .port }}/{{ .dbname }}"
|
||||
dataFrom:
|
||||
- extract:
|
||||
key: immich-pguser-immich
|
|
@ -10,7 +10,7 @@ data:
|
|||
endpoints:
|
||||
- name: immich-postgres
|
||||
group: infrastructure
|
||||
url: tcp://immich-primary.media.svc.cluster.local:5432
|
||||
url: tcp://immich-primary-real.media.svc.cluster.local:5432
|
||||
interval: 1m
|
||||
ui:
|
||||
hide-url: true
|
||||
|
|
|
@ -4,6 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
|||
kind: Kustomization
|
||||
resources:
|
||||
- ./configmap.yaml
|
||||
- ./externalsecret.yaml
|
||||
- ./gatus.yaml
|
||||
- ./helmrelease.yaml
|
||||
- ./machine-learning
|
||||
|
|
Loading…
Reference in a new issue