Add Immich Deployment

This commit is contained in:
Daniel Cosme
2026-05-05 12:27:12 -04:00
parent 34d558db72
commit 4447067020
5 changed files with 82 additions and 6 deletions
+58
View File
@@ -0,0 +1,58 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: immich
name: immich
namespace: immich
spec:
selector:
matchLabels:
app: immich
strategy: {}
template:
metadata:
labels:
app: immich
spec:
containers:
- env:
- name: DB_DATABASE_NAME
valueFrom:
secretKeyRef:
key: db_username
name: immich-secret
- name: DB_HOSTNAME
valueFrom:
secretKeyRef:
key: db_host
name: immich-secret
- name: DB_PASSWORD
valueFrom:
secretKeyRef:
key: db_password
name: immich-secret
- name: DB_PORT
valueFrom:
secretKeyRef:
key: db_port
name: immich-secret
- name: DB_USERNAME
valueFrom:
secretKeyRef:
key: db_username
name: immich-secret
image: ghcr.io/immich-app/immich-server:v2.6.0:-release
name: immich-server
ports:
- containerPort: 2283
resources: {}
volumes:
- name: upload
persistentVolumeClaim:
claimName: immich-pvc
- hostPath:
path: /etc/localtime
type: File
name: localtime
status: {}
+15
View File
@@ -0,0 +1,15 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: immich
name: immich
namespace: immich
spec:
ports:
- port: 2283
targetPort: 0
selector:
app: immich
status:
loadBalancer: {}
+3 -1
View File
@@ -4,7 +4,9 @@ metadata:
name: immich
namespace: immich
resources:
- immich-deployment.yaml
- immich-srv.yaml
- namespace.yaml
- redis-deployment.yaml
- redis-srv.yaml
- redis.yaml
- uploads-pvc.yaml