video-shuoshan/k8s/ingress.yaml
zyc f42eb64e25
All checks were successful
Build and Deploy / build-and-deploy (push) Successful in 3m13s
Add CI/CD pipeline and K8S deployment
- 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)
2026-03-13 10:24:31 +08:00

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