This commit is contained in:
parent
019e10b3d0
commit
738fe480ba
6 changed files with 99 additions and 29 deletions
|
@ -8,8 +8,11 @@ images:
|
||||||
- name: museum
|
- name: museum
|
||||||
newName: ghcr.io/ente-io/server
|
newName: ghcr.io/ente-io/server
|
||||||
newTag: 26e17d8464736acc747c1b35c65af194172a245c
|
newTag: 26e17d8464736acc747c1b35c65af194172a245c
|
||||||
- name: web
|
- name: photos
|
||||||
newName: code.icb4dc0.de/infrastructure/images/ente/web
|
newName: code.icb4dc0.de/infrastructure/images/ente/photos
|
||||||
|
newTag: photos-v0.8.94
|
||||||
|
- name: cast
|
||||||
|
newName: code.icb4dc0.de/infrastructure/images/ente/cast
|
||||||
newTag: photos-v0.8.94
|
newTag: photos-v0.8.94
|
||||||
|
|
||||||
labels:
|
labels:
|
||||||
|
@ -22,8 +25,10 @@ resources:
|
||||||
- resources/namespace.yaml
|
- resources/namespace.yaml
|
||||||
- resources/museum/deployment.yaml
|
- resources/museum/deployment.yaml
|
||||||
- resources/museum/service.yaml
|
- resources/museum/service.yaml
|
||||||
- resources/web/deployment.yaml
|
- resources/photos/deployment.yaml
|
||||||
- resources/web/service.yaml
|
- resources/photos/service.yaml
|
||||||
|
- resources/cast/deployment.yaml
|
||||||
|
- resources/cast/service.yaml
|
||||||
- resources/http_routes.yaml
|
- resources/http_routes.yaml
|
||||||
|
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
|
|
|
@ -1,22 +1,22 @@
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: web
|
name: cast
|
||||||
spec:
|
spec:
|
||||||
replicas: 2
|
replicas: 2
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: web
|
app.kubernetes.io/name: cast
|
||||||
app.kubernetes.io/part-of: ente
|
app.kubernetes.io/part-of: ente
|
||||||
template:
|
template:
|
||||||
metadata:
|
metadata:
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: web
|
app.kubernetes.io/name: cast
|
||||||
app.kubernetes.io/part-of: ente
|
app.kubernetes.io/part-of: ente
|
||||||
spec:
|
spec:
|
||||||
containers:
|
containers:
|
||||||
- name: web
|
- name: cast
|
||||||
image: web
|
image: cast
|
||||||
imagePullPolicy: Always
|
imagePullPolicy: Always
|
||||||
env:
|
env:
|
||||||
- name: ENDPOINT
|
- name: ENDPOINT
|
||||||
|
@ -31,7 +31,7 @@ spec:
|
||||||
memory: "128Mi"
|
memory: "128Mi"
|
||||||
cpu: "50m"
|
cpu: "50m"
|
||||||
ports:
|
ports:
|
||||||
- name: web
|
- name: http
|
||||||
containerPort: 3000
|
containerPort: 3000
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
kubernetes.io/arch: arm64
|
kubernetes.io/arch: arm64
|
|
@ -1,10 +1,10 @@
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
name: web
|
name: cast
|
||||||
spec:
|
spec:
|
||||||
selector:
|
selector:
|
||||||
app.kubernetes.io/name: web
|
app.kubernetes.io/name: cast
|
||||||
app.kubernetes.io/part-of: ente
|
app.kubernetes.io/part-of: ente
|
||||||
ports:
|
ports:
|
||||||
- port: 3000
|
- port: 3000
|
|
@ -12,6 +12,7 @@ spec:
|
||||||
- ente.icb4dc0.de
|
- ente.icb4dc0.de
|
||||||
- api.ente.icb4dc0.de
|
- api.ente.icb4dc0.de
|
||||||
- albums.ente.icb4dc0.de
|
- albums.ente.icb4dc0.de
|
||||||
|
- cast.ente.icb4dc0.de
|
||||||
rules:
|
rules:
|
||||||
- filters:
|
- filters:
|
||||||
- type: RequestRedirect
|
- type: RequestRedirect
|
||||||
|
@ -21,22 +22,6 @@ spec:
|
||||||
---
|
---
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: HTTPRoute
|
kind: HTTPRoute
|
||||||
metadata:
|
|
||||||
name: https-web
|
|
||||||
spec:
|
|
||||||
parentRefs:
|
|
||||||
- name: contour
|
|
||||||
sectionName: https
|
|
||||||
namespace: projectcontour
|
|
||||||
hostnames:
|
|
||||||
- ente.icb4dc0.de
|
|
||||||
rules:
|
|
||||||
- backendRefs:
|
|
||||||
- name: ente-web
|
|
||||||
port: 3000
|
|
||||||
---
|
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
|
||||||
kind: HTTPRoute
|
|
||||||
metadata:
|
metadata:
|
||||||
name: https-api
|
name: https-api
|
||||||
spec:
|
spec:
|
||||||
|
@ -53,6 +38,22 @@ spec:
|
||||||
---
|
---
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: HTTPRoute
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: https-photos
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: contour
|
||||||
|
sectionName: https
|
||||||
|
namespace: projectcontour
|
||||||
|
hostnames:
|
||||||
|
- ente.icb4dc0.de
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: ente-photos
|
||||||
|
port: 3000
|
||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: https-albums
|
name: https-albums
|
||||||
spec:
|
spec:
|
||||||
|
@ -64,5 +65,21 @@ spec:
|
||||||
- albums.ente.icb4dc0.de
|
- albums.ente.icb4dc0.de
|
||||||
rules:
|
rules:
|
||||||
- backendRefs:
|
- backendRefs:
|
||||||
- name: ente-web
|
- name: ente-photos
|
||||||
|
port: 3000
|
||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: https-cast
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: contour
|
||||||
|
sectionName: ente-endpoints
|
||||||
|
namespace: projectcontour
|
||||||
|
hostnames:
|
||||||
|
- cast.ente.icb4dc0.de
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: ente-cast
|
||||||
port: 3000
|
port: 3000
|
37
ente/resources/photos/deployment.yaml
Normal file
37
ente/resources/photos/deployment.yaml
Normal file
|
@ -0,0 +1,37 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: photos
|
||||||
|
spec:
|
||||||
|
replicas: 2
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app.kubernetes.io/name: photos
|
||||||
|
app.kubernetes.io/part-of: ente
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: photos
|
||||||
|
app.kubernetes.io/part-of: ente
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: photos
|
||||||
|
image: photos
|
||||||
|
imagePullPolicy: Always
|
||||||
|
env:
|
||||||
|
- name: ENDPOINT
|
||||||
|
value: https://api.ente.icb4dc0.de
|
||||||
|
- name: ALBUMS_ENDPOINT
|
||||||
|
value: https://albums.ente.icb4dc0.de
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
memory: "64Mi"
|
||||||
|
cpu: "25m"
|
||||||
|
limits:
|
||||||
|
memory: "128Mi"
|
||||||
|
cpu: "50m"
|
||||||
|
ports:
|
||||||
|
- name: http
|
||||||
|
containerPort: 3000
|
||||||
|
nodeSelector:
|
||||||
|
kubernetes.io/arch: arm64
|
11
ente/resources/photos/service.yaml
Normal file
11
ente/resources/photos/service.yaml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: photos
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app.kubernetes.io/name: photos
|
||||||
|
app.kubernetes.io/part-of: ente
|
||||||
|
ports:
|
||||||
|
- port: 3000
|
||||||
|
targetPort: 3000
|
Loading…
Reference in a new issue