add db, ingress, ml, pvc, secrets,svc, deployment for immich

This commit is contained in:
2025-12-28 03:33:49 +05:30
parent 63ff9eca66
commit 6a191db107
9 changed files with 341 additions and 0 deletions

View File

@@ -0,0 +1,56 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: immich-app
namespace: media
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app: immich-app
template:
metadata:
labels:
app: immich-app
spec:
containers:
- name: immich-server
image: ghcr.io/immich-app/immich-server:v2.4.1
readinessProbe:
exec:
command:
- sh
- -c
- |
pg_isready -h immich-psql.media.svc.cluster.local -U postgres -p 5432
initialDelaySeconds: 10
periodSeconds: 5
failureThreshold: 5
ports:
- containerPort: 2283
env:
- name: TZ
value: "Asia/Kolkata"
- name: REDIS_HOSTNAME
value: "immich-redis.media.svc.cluster.local"
- name: DB_USERNAME
value: "postgres"
- name: DB_DATABASE_NAME
value: "immich"
- name: DB_HOSTNAME
value: "immich-psql.media.svc.cluster.local"
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
name: immich-postgres-secret
key: password
volumeMounts:
- mountPath: /usr/src/app/upload
name: pictures
volumes:
- name: pictures
persistentVolumeClaim:
claimName: immich-pictures-pvc