adjustments

This commit is contained in:
Steffen Illium 2024-05-03 10:43:03 +02:00
parent 3fdb83234d
commit f23639e924
7 changed files with 44 additions and 43 deletions

View File

@ -3,6 +3,5 @@ kind: Kustomization
resources:
- database.yaml
- machine-learning.yaml
- microservices.yaml
- redis.yaml
- server.yaml

View File

@ -20,6 +20,11 @@ spec:
- image: ghcr.io/immich-app/immich-machine-learning:release
name: immich-machine-learning
resources: {}
ports:
- name: http
containerPort: 3003
hostPort: 3003
protocol: TCP
volumeMounts:
- mountPath: /cache
name: model-cache

View File

@ -1,40 +0,0 @@
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: microservices
name: microservices
spec:
replicas: 1
selector:
matchLabels:
app: microservices
strategy:
type: Recreate
template:
metadata:
labels:
app: microservices
spec:
containers:
- args:
- start.sh
- microservices
envFrom:
- secretRef:
name: immich-secret
image: ghcr.io/immich-app/immich-server:release
name: microservices
resources: {}
volumeMounts:
- mountPath: /usr/src/app/upload
name: photos
subPath: upload
- mountPath: /usr/src/app/external
name: photos
restartPolicy: Always
volumes:
- name: photos
nfs:
server: 192.168.178.4
path: /mnt/photos

View File

@ -17,6 +17,26 @@ spec:
app: server
spec:
containers:
- args:
- start.sh
- microservices
envFrom:
- secretRef:
name: immich-secret
image: ghcr.io/immich-app/immich-server:release
name: microservices
ports:
- name: http
containerPort: 3002
hostPort: 3002
protocol: TCP
resources: {}
volumeMounts:
- mountPath: /usr/src/app/upload
name: photos
subPath: upload
- mountPath: /usr/src/app/external
name: photos
- args:
- start.sh
- immich

View File

@ -4,3 +4,4 @@ resources:
- database.yaml
- redis.yaml
- server.yaml
- machine-learning.yaml

View File

@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: machine-learning
name: machine-learning
spec:
ports:
- name: "http"
port: 3003
targetPort: 3003
selector:
app: machine-learning

View File

@ -7,7 +7,10 @@ metadata:
spec:
ports:
- name: "http"
port: 2283
port: 3001
targetPort: 3001
- name: "http"
port: 3002
targetPort: 3002
selector:
app: server