All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m13s
- Backend/Web Dockerfiles with multi-stage builds - K8S deployments, services, and ingress for both domains - Gitea Actions workflow: build → push to SWR → deploy to K3s - Health check endpoint (/healthz/) - CORS env var support for production domains - Nginx reverse proxy for frontend → backend API Domains: - video-huoshan-api.airlabs.art (backend) - video-huoshan-web.airlabs.art (frontend)
37 lines
820 B
YAML
37 lines
820 B
YAML
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: video-huoshan-ingress
|
|
annotations:
|
|
kubernetes.io/ingress.class: "traefik"
|
|
cert-manager.io/cluster-issuer: "letsencrypt-prod"
|
|
spec:
|
|
tls:
|
|
- hosts:
|
|
- video-huoshan-api.airlabs.art
|
|
secretName: video-huoshan-api-tls
|
|
- hosts:
|
|
- video-huoshan-web.airlabs.art
|
|
secretName: video-huoshan-web-tls
|
|
rules:
|
|
- host: video-huoshan-api.airlabs.art
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: video-backend
|
|
port:
|
|
number: 8000
|
|
- host: video-huoshan-web.airlabs.art
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: video-web
|
|
port:
|
|
number: 80
|