feat: add immich deployment, services, and persistent volume claims
This commit is contained in:
61
cluster/apps/immich/immich-db.yml
Normal file
61
cluster/apps/immich/immich-db.yml
Normal file
@@ -0,0 +1,61 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: immich-db
|
||||
namespace: default
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: immich-db
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: immich-db
|
||||
spec:
|
||||
containers:
|
||||
- name: redis
|
||||
image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
|
||||
env:
|
||||
- name: REDIS_HOSTNAME
|
||||
value: "immich-redis"
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
- name: immich-psql
|
||||
image: registry.hub.docker.com/tensorchord/pgvecto-rs:pg14-v0.2.0
|
||||
ports:
|
||||
- containerPort: 5432
|
||||
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
|
||||
args:
|
||||
- "postgres"
|
||||
- "-c"
|
||||
- "shared_preload_libraries=vectors.so"
|
||||
- "-c"
|
||||
- "search_path=\"$$user\", public, vectors"
|
||||
- "-c"
|
||||
- "logging_collector=on"
|
||||
- "-c"
|
||||
- "max_wal_size=2GB"
|
||||
- "-c"
|
||||
- "shared_buffers=512MB"
|
||||
- "-c"
|
||||
- "wal_compression=on"
|
||||
volumes:
|
||||
- name: immich
|
||||
nfs:
|
||||
server: 10.0.0.10
|
||||
path: /home/akshun/immich-data
|
||||
Reference in New Issue
Block a user