services
This commit is contained in:
parent
acd8cfde84
commit
bd08d69e0e
@ -3,5 +3,4 @@ kind: Kustomization
|
|||||||
resources:
|
resources:
|
||||||
- ingress.yaml
|
- ingress.yaml
|
||||||
- pvc.yaml
|
- pvc.yaml
|
||||||
- service.yaml
|
|
||||||
- immich-secret-sealed.yaml
|
- immich-secret-sealed.yaml
|
||||||
|
@ -26,6 +26,11 @@ spec:
|
|||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/lib/postgresql/data
|
- mountPath: /var/lib/postgresql/data
|
||||||
name: pgdata
|
name: pgdata
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 5432
|
||||||
|
hostPort: 5432
|
||||||
|
protocol: TCP
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
||||||
volumes:
|
volumes:
|
||||||
- name: pgdata
|
- name: pgdata
|
||||||
|
@ -2,19 +2,19 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: immich-microservices
|
app: microservices
|
||||||
name: immich-microservices
|
name: microservices
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: immich-microservices
|
app: microservices
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: immich-microservices
|
app: microservices
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- args:
|
- args:
|
||||||
@ -24,7 +24,7 @@ spec:
|
|||||||
- secretRef:
|
- secretRef:
|
||||||
name: immich-secret
|
name: immich-secret
|
||||||
image: ghcr.io/immich-app/immich-server:release
|
image: ghcr.io/immich-app/immich-server:release
|
||||||
name: immich-microservices
|
name: microservices
|
||||||
resources: {}
|
resources: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /usr/src/app/upload
|
- mountPath: /usr/src/app/upload
|
||||||
|
@ -19,4 +19,9 @@ spec:
|
|||||||
- image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
|
- image: registry.hub.docker.com/library/redis:6.2-alpine@sha256:84882e87b54734154586e5f8abd4dce69fe7311315e2fc6d67c29614c8de2672
|
||||||
name: immich-redis
|
name: immich-redis
|
||||||
resources: {}
|
resources: {}
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 6379
|
||||||
|
hostPort: 6379
|
||||||
|
protocol: TCP
|
||||||
restartPolicy: Always
|
restartPolicy: Always
|
@ -2,19 +2,19 @@ apiVersion: apps/v1
|
|||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: immich-server
|
app: server
|
||||||
name: immich-server
|
name: server
|
||||||
spec:
|
spec:
|
||||||
replicas: 1
|
replicas: 1
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app: immich-server
|
app: server
|
||||||
strategy:
|
strategy:
|
||||||
type: Recreate
|
type: Recreate
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: immich-server
|
app: server
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- args:
|
- args:
|
||||||
@ -24,11 +24,11 @@ spec:
|
|||||||
- secretRef:
|
- secretRef:
|
||||||
name: immich-secret
|
name: immich-secret
|
||||||
image: ghcr.io/immich-app/immich-server:release
|
image: ghcr.io/immich-app/immich-server:release
|
||||||
name: immich-server
|
name: server
|
||||||
ports:
|
ports:
|
||||||
- name: http
|
- name: http
|
||||||
containerPort: 3001
|
containerPort: 3001
|
||||||
hostPort: 2283
|
hostPort: 3001
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
resources: {}
|
resources: {}
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
|
@ -4,5 +4,6 @@ kind: Kustomization
|
|||||||
namespace: immich
|
namespace: immich
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
- base
|
|
||||||
- deployment
|
- deployment
|
||||||
|
- base
|
||||||
|
- service
|
||||||
|
13
apps/immich/service/database.yaml
Normal file
13
apps/immich/service/database.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: database
|
||||||
|
name: database
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "http"
|
||||||
|
port: 5432
|
||||||
|
targetPort: 5432
|
||||||
|
selector:
|
||||||
|
app: database
|
6
apps/immich/service/kustomization.yaml
Normal file
6
apps/immich/service/kustomization.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- database.yaml
|
||||||
|
- redis.yaml
|
||||||
|
- server.yaml
|
13
apps/immich/service/redis.yaml
Normal file
13
apps/immich/service/redis.yaml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: redis
|
||||||
|
name: redis
|
||||||
|
spec:
|
||||||
|
ports:
|
||||||
|
- name: "http"
|
||||||
|
port: 6379
|
||||||
|
targetPort: 6379
|
||||||
|
selector:
|
||||||
|
app: redis
|
@ -2,12 +2,12 @@ apiVersion: v1
|
|||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app: immich-server
|
app: server
|
||||||
name: immich-server
|
name: server
|
||||||
spec:
|
spec:
|
||||||
ports:
|
ports:
|
||||||
- name: "http"
|
- name: "http"
|
||||||
port: 2283
|
port: 2283
|
||||||
targetPort: 3001
|
targetPort: 3001
|
||||||
selector:
|
selector:
|
||||||
app: immich-server
|
app: server
|
@ -18,7 +18,7 @@ spec:
|
|||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: cron
|
- name: cron
|
||||||
image: nextcloud
|
image: nextcloud:latest
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /var/www/html
|
- mountPath: /var/www/html
|
||||||
name: nextcloud
|
name: nextcloud
|
||||||
|
Loading…
x
Reference in New Issue
Block a user