feat(ente): deploy cast
All checks were successful
Renovate / renovate (push) Successful in 24s

This commit is contained in:
Peter 2024-05-19 11:50:07 +02:00
parent 019e10b3d0
commit 738fe480ba
Signed by: prskr
GPG key ID: F56BED6903BC5E37
6 changed files with 99 additions and 29 deletions

View file

@ -8,8 +8,11 @@ images:
- name: museum
newName: ghcr.io/ente-io/server
newTag: 26e17d8464736acc747c1b35c65af194172a245c
- name: web
newName: code.icb4dc0.de/infrastructure/images/ente/web
- name: photos
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
labels:
@ -22,8 +25,10 @@ resources:
- resources/namespace.yaml
- resources/museum/deployment.yaml
- resources/museum/service.yaml
- resources/web/deployment.yaml
- resources/web/service.yaml
- resources/photos/deployment.yaml
- resources/photos/service.yaml
- resources/cast/deployment.yaml
- resources/cast/service.yaml
- resources/http_routes.yaml
configMapGenerator:

View file

@ -1,22 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: web
name: cast
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: web
app.kubernetes.io/name: cast
app.kubernetes.io/part-of: ente
template:
metadata:
labels:
app.kubernetes.io/name: web
app.kubernetes.io/name: cast
app.kubernetes.io/part-of: ente
spec:
containers:
- name: web
image: web
- name: cast
image: cast
imagePullPolicy: Always
env:
- name: ENDPOINT
@ -31,7 +31,7 @@ spec:
memory: "128Mi"
cpu: "50m"
ports:
- name: web
- name: http
containerPort: 3000
nodeSelector:
kubernetes.io/arch: arm64

View file

@ -1,10 +1,10 @@
apiVersion: v1
kind: Service
metadata:
name: web
name: cast
spec:
selector:
app.kubernetes.io/name: web
app.kubernetes.io/name: cast
app.kubernetes.io/part-of: ente
ports:
- port: 3000

View file

@ -12,6 +12,7 @@ spec:
- ente.icb4dc0.de
- api.ente.icb4dc0.de
- albums.ente.icb4dc0.de
- cast.ente.icb4dc0.de
rules:
- filters:
- type: RequestRedirect
@ -21,22 +22,6 @@ spec:
---
apiVersion: gateway.networking.k8s.io/v1
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:
name: https-api
spec:
@ -53,6 +38,22 @@ spec:
---
apiVersion: gateway.networking.k8s.io/v1
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:
name: https-albums
spec:
@ -64,5 +65,21 @@ spec:
- albums.ente.icb4dc0.de
rules:
- 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

View 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

View 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