Add Immich Deployment
This commit is contained in:
58
apps/hydra/immich/immich-deployment.yaml
Normal file
58
apps/hydra/immich/immich-deployment.yaml
Normal 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
apps/hydra/immich/immich-srv.yaml
Normal file
15
apps/hydra/immich/immich-srv.yaml
Normal 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: {}
|
||||
@@ -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
|
||||
|
||||
@@ -56,8 +56,9 @@ func Stack() stack.Stack {
|
||||
"namespace": Namespace,
|
||||
"uploads-pvc": uploads_pvc,
|
||||
"redis-srv": redis_srv,
|
||||
"redis": Redis(),
|
||||
// "deployment": Deployment(),
|
||||
"redis-deployment": Redis(),
|
||||
"immich-deployment": Deployment(),
|
||||
"immich-srv": srv,
|
||||
},
|
||||
)
|
||||
return kz.Stack("immich")
|
||||
|
||||
Reference in New Issue
Block a user