Files
k3s-at-home/clusters/ipv6/media/immich/immich.yml

58 lines
1.4 KiB
YAML

---
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.5.2
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
nfs:
server: 10.0.0.123
path: /pictures