Add Kubernetes configurations for Immich deployment, including database, machine learning, services, and secrets
This commit is contained in:
47
clusters/default/media/immich/immich-db.yml
Normal file
47
clusters/default/media/immich/immich-db.yml
Normal file
@@ -0,0 +1,47 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: immich-db
|
||||
namespace: media
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: immich-db
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: immich-db
|
||||
spec:
|
||||
containers:
|
||||
- name: redis
|
||||
image: docker.io/valkey/valkey:8-bookworm@sha256:fea8b3e67b15729d4bb70589eb03367bab9ad1ee89c876f54327fc7c6e618571
|
||||
env:
|
||||
- name: REDIS_HOSTNAME
|
||||
value: "localhost"
|
||||
ports:
|
||||
- containerPort: 6379
|
||||
- name: immich-psql
|
||||
image: ghcr.io/immich-app/postgres:14-vectorchord0.3.0-pgvectors0.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
|
||||
volumes:
|
||||
- name: immich
|
||||
nfs:
|
||||
server: 10.0.0.10
|
||||
path: /home/akshun/immich-data
|
||||
Reference in New Issue
Block a user