This repository has been archived on 2026-01-04. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
ipv6-k3s/clusters/ipv6/media/immich/immich-db.yml
Renovate Bot 6d0ee7e489
All checks were successful
Validate Kubernetes Manifests / kubeconform (pull_request) Successful in 11s
Update ghcr.io/immich-app/postgres Docker tag to v16
2025-12-28 04:45:42 +00:00

55 lines
1.3 KiB
YAML

---
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: immich-psql
namespace: media
spec:
selector:
matchLabels:
app: immich-psql
serviceName: immich-psql
replicas: 1
template:
metadata:
labels:
app: immich-psql
spec:
initContainers:
- name: cleanup
image: busybox
command: ['sh', '-c', 'rm -rf /var/lib/postgresql/data/lost+found']
volumeMounts:
- name: immich-db
mountPath: /var/lib/postgresql/data
containers:
- name: immich-psql
image: ghcr.io/immich-app/postgres:16-vectorchord0.3.0-pgvectors0.2.0
ports:
- containerPort: 5432
name: postgres
env:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: immich-postgres-secret
key: password
- name: POSTGRES_USER
value: "postgres"
- name: POSTGRES_DB
value: "immich"
- name: POSTGRES_INITDB_ARGS
value: "--data-checksums"
volumeMounts:
- mountPath: /var/lib/postgresql/data
name: immich-db
volumeClaimTemplates:
- metadata:
name: immich-db
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 5Gi
storageClassName: longhorn