Breaks Immich app deployment apart for clarity.
This commit is contained in:
39
apps/immich/deployment-machine-learning.yaml
Normal file
39
apps/immich/deployment-machine-learning.yaml
Normal file
@@ -0,0 +1,39 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: immich-machine-learning
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: immich-machine-learning
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: immich-machine-learning
|
||||||
|
component: machine-learning
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: ghcr.io/immich-app/immich-machine-learning:release
|
||||||
|
name: immich-machine-learning
|
||||||
|
ports:
|
||||||
|
- containerPort: 3003
|
||||||
|
protocol: TCP
|
||||||
|
envFrom:
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
|
env:
|
||||||
|
- name: TZ
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
key: TZ
|
||||||
|
name: config
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /cache
|
||||||
|
name: immich-cache
|
||||||
|
readOnly: false
|
||||||
|
volumes:
|
||||||
|
- name: immich-cache
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: immich-cache-pvc
|
49
apps/immich/deployment-microservices.yaml
Normal file
49
apps/immich/deployment-microservices.yaml
Normal file
@@ -0,0 +1,49 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: immich-microservices
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: immich-microservices
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 0
|
||||||
|
maxUnavailable: 1
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: immich-microservices
|
||||||
|
component: microservices
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: ghcr.io/immich-app/immich-server:release
|
||||||
|
name: immich-microservices
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: secrets
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
|
env:
|
||||||
|
- name: REDIS_HOSTNAME
|
||||||
|
value: redis.redis.svc.cluster.local
|
||||||
|
- name: DB_HOSTNAME
|
||||||
|
value: postgres.postgres.svc.cluster.local
|
||||||
|
- name: TZ
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
key: TZ
|
||||||
|
name: config
|
||||||
|
- name: IMMICH_WORKERS_EXCLUDE
|
||||||
|
value: api
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /usr/src/app/upload
|
||||||
|
name: immich-storage
|
||||||
|
readOnly: false
|
||||||
|
volumes:
|
||||||
|
- name: immich-storage
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: immich-pvc
|
52
apps/immich/deployment-server.yaml
Normal file
52
apps/immich/deployment-server.yaml
Normal file
@@ -0,0 +1,52 @@
|
|||||||
|
---
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: immich-server
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: immich-server
|
||||||
|
strategy:
|
||||||
|
rollingUpdate:
|
||||||
|
maxSurge: 0
|
||||||
|
maxUnavailable: 1
|
||||||
|
type: RollingUpdate
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: immich-server
|
||||||
|
component: server
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- image: ghcr.io/immich-app/immich-server:release
|
||||||
|
name: immich-server
|
||||||
|
ports:
|
||||||
|
- containerPort: 2283
|
||||||
|
protocol: TCP
|
||||||
|
envFrom:
|
||||||
|
- secretRef:
|
||||||
|
name: secrets
|
||||||
|
- configMapRef:
|
||||||
|
name: config
|
||||||
|
env:
|
||||||
|
- name: REDIS_HOSTNAME
|
||||||
|
value: redis.redis.svc.cluster.local
|
||||||
|
- name: DB_HOSTNAME
|
||||||
|
value: postgres.postgres.svc.cluster.local
|
||||||
|
- name: TZ
|
||||||
|
valueFrom:
|
||||||
|
configMapKeyRef:
|
||||||
|
key: TZ
|
||||||
|
name: config
|
||||||
|
- name: IMMICH_WORKERS_EXCLUDE
|
||||||
|
value: microservices
|
||||||
|
volumeMounts:
|
||||||
|
- mountPath: /usr/src/app/upload
|
||||||
|
name: immich-storage
|
||||||
|
readOnly: false
|
||||||
|
volumes:
|
||||||
|
- name: immich-storage
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: immich-pvc
|
@@ -1,138 +0,0 @@
|
|||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: immich-server
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: immich-server
|
|
||||||
strategy:
|
|
||||||
rollingUpdate:
|
|
||||||
maxSurge: 0
|
|
||||||
maxUnavailable: 1
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: immich-server
|
|
||||||
component: server
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: ghcr.io/immich-app/immich-server:release
|
|
||||||
name: immich-server
|
|
||||||
ports:
|
|
||||||
- containerPort: 2283
|
|
||||||
protocol: TCP
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: secrets
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
env:
|
|
||||||
- name: REDIS_HOSTNAME
|
|
||||||
value: redis.redis
|
|
||||||
- name: DB_HOSTNAME
|
|
||||||
value: postgres.postgres
|
|
||||||
- name: TZ
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: TZ
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /usr/src/app/upload
|
|
||||||
name: immich-storage
|
|
||||||
readOnly: false
|
|
||||||
volumes:
|
|
||||||
- name: immich-storage
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: immich-pvc
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: immich-microservices
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: immich-microservices
|
|
||||||
strategy:
|
|
||||||
rollingUpdate:
|
|
||||||
maxSurge: 0
|
|
||||||
maxUnavailable: 1
|
|
||||||
type: RollingUpdate
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: immich-microservices
|
|
||||||
component: microservices
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: ghcr.io/immich-app/immich-server:release
|
|
||||||
name: immich-microservices
|
|
||||||
envFrom:
|
|
||||||
- secretRef:
|
|
||||||
name: secrets
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
env:
|
|
||||||
- name: REDIS_HOSTNAME
|
|
||||||
value: redis.redis
|
|
||||||
- name: DB_HOSTNAME
|
|
||||||
value: postgres.postgres
|
|
||||||
- name: TZ
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: TZ
|
|
||||||
name: config
|
|
||||||
- name: IMMICH_WORKERS_INCLUDE
|
|
||||||
value: api
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /usr/src/app/upload
|
|
||||||
name: immich-storage
|
|
||||||
readOnly: false
|
|
||||||
volumes:
|
|
||||||
- name: immich-storage
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: immich-pvc
|
|
||||||
---
|
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: immich-machine-learning
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: immich-machine-learning
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: immich-machine-learning
|
|
||||||
component: machine-learning
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- image: ghcr.io/immich-app/immich-machine-learning:release
|
|
||||||
name: immich-machine-learning
|
|
||||||
ports:
|
|
||||||
- containerPort: 3003
|
|
||||||
protocol: TCP
|
|
||||||
envFrom:
|
|
||||||
- configMapRef:
|
|
||||||
name: config
|
|
||||||
env:
|
|
||||||
- name: TZ
|
|
||||||
valueFrom:
|
|
||||||
configMapKeyRef:
|
|
||||||
key: TZ
|
|
||||||
name: config
|
|
||||||
volumeMounts:
|
|
||||||
- mountPath: /cache
|
|
||||||
name: immich-cache
|
|
||||||
readOnly: false
|
|
||||||
volumes:
|
|
||||||
- name: immich-cache
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: immich-cache-pvc
|
|
@@ -8,7 +8,9 @@ labels:
|
|||||||
managedBy: kustomize
|
managedBy: kustomize
|
||||||
partOf: wild-cloud
|
partOf: wild-cloud
|
||||||
resources:
|
resources:
|
||||||
- deployment.yaml
|
- deployment-server.yaml
|
||||||
|
- deployment-machine-learning.yaml
|
||||||
|
- deployment-microservices.yaml
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
|
Reference in New Issue
Block a user