add db, ingress, ml, pvc, secrets,svc, deployment for immich
This commit is contained in:
54
clusters/ipv6/media/immich/immich-db.yml
Normal file
54
clusters/ipv6/media/immich/immich-db.yml
Normal file
@@ -0,0 +1,54 @@
|
||||
---
|
||||
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:14-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
|
||||
Reference in New Issue
Block a user