Add more reliable service to immich db.

This commit is contained in:
Joseph Hanson 2024-04-15 12:42:43 -05:00
parent 17152107a1
commit 95d975c177
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o
2 changed files with 20 additions and 0 deletions

View file

@ -9,6 +9,7 @@ resources:
- ./machine-learning
- ./microservices
- ./postgresCluster.yaml
- ./service.yaml
configMapGenerator:
- name: immich-databse-init-sql
files:

View file

@ -0,0 +1,19 @@
apiVersion: v1
kind: Service
metadata:
labels:
postgres-operator.crunchydata.com/cluster: immich
postgres-operator.crunchydata.com/role: primary
name: immich-primary-real
namespace: media
spec:
internalTrafficPolicy: Cluster
ports:
- name: postgres
port: 5432
protocol: TCP
targetPort: postgres
selector:
postgres-operator.crunchydata.com/cluster: immich
postgres-operator.crunchydata.com/role: master
type: ClusterIP