kubernetes: add separate docs directory and update immich manifests
All checks were successful
ci/woodpecker/push/demo-workflow Pipeline was successful

This commit is contained in:
2025-10-17 21:35:39 +03:00
parent 2ee0c95869
commit c682ef0f57
5 changed files with 163 additions and 290593 deletions

View File

@ -1,51 +0,0 @@
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: immich-migration-db
spec:
serviceName: "immich-migration-db"
replicas: 1
selector:
matchLabels:
app: immich-migration-db
template:
metadata:
labels:
app: immich-migration-db
spec:
containers:
- name: postgres
image: ghcr.io/immich-app/postgres:14-vectorchord0.4.3-pgvectors0.2.0
ports:
- containerPort: 5432
env:
- name: POSTGRES_DB
value: immich
- name: POSTGRES_USER
value: immich
- name: POSTGRES_PASSWORD
value: arsehole
volumeMounts:
- name: pgdata
mountPath: /var/lib/postgresql/data
volumeClaimTemplates:
- metadata:
name: pgdata
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: Service
metadata:
name: immich-migration-db
spec:
selector:
app: immich-migration-db
ports:
- name: postgres
port: 5432
targetPort: 5432
type: LoadBalancer

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,11 @@
apiVersion: postgresql.cnpg.io/v1
kind: ScheduledBackup
metadata:
name: immich-db-backup
spec:
immediate: true
schedule: "0 0 0 * * *" # At midnight every day
backupOwnerReference: self
cluster:
name: immich-database