- secret-oauth2.yaml: Cookie-Secret auf exakt 32 Bytes korrigiert (openssl rand -base64 32 ergibt 44 Zeichen, nicht 32 raw bytes) - web.yaml: PORT=3000 + HOSTNAME=0.0.0.0 explizit gesetzt, damit envFrom gongme-env's PORT=3001 (fuer API) nicht uebernommen wird Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
71 lines
1.5 KiB
YAML
71 lines
1.5 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: gongme-web
|
|
namespace: gongme
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: RollingUpdate
|
|
rollingUpdate:
|
|
maxSurge: 1
|
|
maxUnavailable: 0
|
|
selector:
|
|
matchLabels:
|
|
app: gongme-web
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: gongme-web
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: gitea-registry
|
|
containers:
|
|
- name: web
|
|
image: git.expertfab.de/expertfab/ef-gongme-web:latest
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 3000
|
|
envFrom:
|
|
- secretRef:
|
|
name: gongme-env
|
|
env:
|
|
- name: PORT
|
|
value: "3000"
|
|
- name: HOSTNAME
|
|
value: "0.0.0.0"
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 10
|
|
failureThreshold: 6
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 3000
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 30
|
|
failureThreshold: 5
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 128Mi
|
|
limits:
|
|
cpu: 500m
|
|
memory: 512Mi
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: gongme-web
|
|
namespace: gongme
|
|
spec:
|
|
selector:
|
|
app: gongme-web
|
|
ports:
|
|
- port: 3000
|
|
targetPort: 3000
|