Files
homelab/k8s-ng/core/immich-db/cluster.yaml
T
Aleksandr Bogomiakov 8e4201621d
Update Kubernetes Services Wiki / Generate and Update K8s Wiki (push) Failing after 1m6s
Place core services and web-petting on external core nodes
2026-10-12 13:44:16 +01:00

48 lines
1.3 KiB
YAML

# Keep PostgreSQL and both vector extensions identical to the source during
# migration. The application/media migration and any upgrades happen later.
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: immich
annotations:
argocd.argoproj.io/sync-options: Prune=false
spec:
description: Immich database migrated from the old cluster; media remain on NAS
imageName: ghcr.io/tensorchord/cloudnative-pgvecto.rs:14-v0.3.0@sha256:df7848916fea2c486faee8155a481dc5009f30ec513b5561d9ab76d1e101a594
instances: 1
enableSuperuserAccess: true
bootstrap:
initdb:
database: immich
owner: immich
dataChecksums: true
encoding: UTF8
localeCType: C
localeCollate: C
postgresUID: 26
postgresGID: 26
storage:
size: 55Gi
storageClass: immich-local
pvcTemplate:
accessModes: [ReadWriteOnce]
selector:
matchLabels:
immich.hexor.cy/volume: postgres
affinity:
nodeSelector:
homelab.hexor.cy/pool: core
homelab.hexor.cy/exposure: external
kubernetes.io/hostname: music
postgresql:
shared_preload_libraries: [vectors.so]
parameters:
shared_buffers: 512MB
max_connections: "200"
resources:
requests:
cpu: 500m
memory: 1Gi
limits:
memory: 2Gi