2024-01-27 17:56:35 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: immich-microservices
|
|
|
|
namespace: immich-ns
|
|
|
|
spec:
|
|
|
|
replicas: 1
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: immich-microservices
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: immich-microservices
|
|
|
|
spec:
|
|
|
|
containers:
|
|
|
|
- name: immich-microservices
|
|
|
|
image: ghcr.io/immich-app/immich-server:release
|
2024-01-27 18:02:15 +00:00
|
|
|
args: ["start.sh", "microservices"]
|
2024-01-27 17:56:35 +00:00
|
|
|
env:
|
|
|
|
- name: UPLOAD_LOCATION
|
|
|
|
value: /usr/src/app/upload
|
2024-04-08 00:10:34 +00:00
|
|
|
- name: DB_VECTOR_EXTENSION
|
|
|
|
value: pgvector
|
2024-01-27 17:56:35 +00:00
|
|
|
- name: DB_HOSTNAME
|
|
|
|
value: postgresql.postgresql-system.svc.cluster.local
|
|
|
|
- name: DB_USERNAME
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: immich-secret
|
|
|
|
key: username
|
|
|
|
- name: DB_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: immich-secret
|
|
|
|
key: password
|
|
|
|
- name: DB_DATABASE_NAME
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: immich-secret
|
|
|
|
key: database
|
|
|
|
- name: REDIS_HOSTNAME
|
|
|
|
value: redis-master.redis-system.svc.cluster.local
|
2024-04-08 00:36:59 +00:00
|
|
|
- name: REDIS_PASSWORD
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: redis-immich-secret
|
|
|
|
value: REDIS_PASS
|
2024-01-27 17:56:35 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: upload-volume
|
|
|
|
mountPath: /usr/src/app/upload
|
|
|
|
volumes:
|
|
|
|
- name: upload-volume
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: immich-library-pvc
|