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
|
name: immich
|
||||||
namespace: immich
|
namespace: immich
|
||||||
resources:
|
resources:
|
||||||
|
- immich-deployment.yaml
|
||||||
|
- immich-srv.yaml
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
|
- redis-deployment.yaml
|
||||||
- redis-srv.yaml
|
- redis-srv.yaml
|
||||||
- redis.yaml
|
|
||||||
- uploads-pvc.yaml
|
- uploads-pvc.yaml
|
||||||
|
|||||||
@@ -53,11 +53,12 @@ func Stack() stack.Stack {
|
|||||||
kz := kube.NewKuztomizedStack(
|
kz := kube.NewKuztomizedStack(
|
||||||
meta,
|
meta,
|
||||||
map[string]any{
|
map[string]any{
|
||||||
"namespace": Namespace,
|
"namespace": Namespace,
|
||||||
"uploads-pvc": uploads_pvc,
|
"uploads-pvc": uploads_pvc,
|
||||||
"redis-srv": redis_srv,
|
"redis-srv": redis_srv,
|
||||||
"redis": Redis(),
|
"redis-deployment": Redis(),
|
||||||
// "deployment": Deployment(),
|
"immich-deployment": Deployment(),
|
||||||
|
"immich-srv": srv,
|
||||||
},
|
},
|
||||||
)
|
)
|
||||||
return kz.Stack("immich")
|
return kz.Stack("immich")
|
||||||
|
|||||||
Reference in New Issue
Block a user