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 - 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:

View file

@ -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

View file

@ -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

View file

@ -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

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