chore(infra): production manifests + CI for scheduling apps
ci / typecheck (map[dir:apps/booking name:booking]) (push) Has been cancelled
ci / typecheck (map[dir:apps/portal name:portal]) (push) Has been cancelled
ci / typecheck (map[dir:apps/website name:website]) (push) Has been cancelled
ci / typecheck (map[dir:services/platform-api name:platform-api]) (push) Has been cancelled
ci / test (push) Has been cancelled

This commit is contained in:
Ronni Baslund
2026-06-07 09:27:44 +02:00
parent b2c2650af9
commit 35bc7b6c31
14 changed files with 689 additions and 0 deletions
@@ -0,0 +1,101 @@
# portal — Nuxt 4 SSR customer portal on app.dezky.eu. Talks to platform-api
# over the cluster network via its nitro proxy (PLATFORM_API_INTERNAL_URL) and
# authenticates users through Authentik (OIDC).
apiVersion: apps/v1
kind: Deployment
metadata:
name: portal
namespace: dezky-apps
labels:
app.kubernetes.io/name: portal
app.kubernetes.io/part-of: dezky
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: portal
template:
metadata:
labels:
app.kubernetes.io/name: portal
spec:
containers:
- name: portal
image: git.lastcloud.io/ronnibaslund/dezky/portal:latest
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 3000
env:
- name: HOST
value: "0.0.0.0"
- name: PORT
value: "3000"
- name: NUXT_PUBLIC_PORTAL_URL
value: https://app.dezky.eu
# Cluster-internal address of platform-api for the nitro proxy.
- name: PLATFORM_API_INTERNAL_URL
value: http://platform-api.dezky-apps.svc.cluster.local:3001
- name: NUXT_API_BASE
value: http://platform-api.dezky-apps.svc.cluster.local:3001
# OIDC client id/secret + Authentik public URL come from the Secret.
envFrom:
- secretRef:
name: portal-secrets
resources:
requests:
cpu: 100m
memory: 192Mi
limits:
memory: 512Mi
readinessProbe:
tcpSocket:
port: http
initialDelaySeconds: 10
periodSeconds: 15
livenessProbe:
tcpSocket:
port: http
initialDelaySeconds: 30
periodSeconds: 30
---
apiVersion: v1
kind: Service
metadata:
name: portal
namespace: dezky-apps
labels:
app.kubernetes.io/name: portal
spec:
selector:
app.kubernetes.io/name: portal
ports:
- name: http
port: 3000
targetPort: http
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: portal
namespace: dezky-apps
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
traefik.ingress.kubernetes.io/router.entrypoints: websecure
spec:
ingressClassName: traefik
tls:
- hosts:
- app.dezky.eu
secretName: app-dezky-eu-tls
rules:
- host: app.dezky.eu
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: portal
port:
number: 3000