Update config for new more reliable db service.

This commit is contained in:
Joseph Hanson 2024-04-15 12:48:39 -05:00
parent 95d975c177
commit ba0bfb00e9
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
3 changed files with 21 additions and 1 deletions

View 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

View file

@ -10,7 +10,7 @@ data:
endpoints: endpoints:
- name: immich-postgres - name: immich-postgres
group: infrastructure group: infrastructure
url: tcp://immich-primary.media.svc.cluster.local:5432 url: tcp://immich-primary-real.media.svc.cluster.local:5432
interval: 1m interval: 1m
ui: ui:
hide-url: true hide-url: true

View file

@ -4,6 +4,7 @@ apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- ./configmap.yaml - ./configmap.yaml
- ./externalsecret.yaml
- ./gatus.yaml - ./gatus.yaml
- ./helmrelease.yaml - ./helmrelease.yaml
- ./machine-learning - ./machine-learning