video-shuoshan/k8s/ingress.yaml
zyc ab1b00f94a
Some checks failed
Build and Deploy / build-and-deploy (push) Has been cancelled
feat: HTTP 自动跳转 HTTPS — Traefik Middleware + Ingress annotation
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 11:17:02 +08:00

36 lines
858 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: airflow-studio-ingress
annotations:
kubernetes.io/ingress.class: "traefik"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
traefik.ingress.kubernetes.io/router.middlewares: "default-redirect-https@kubernetescrd"
spec:
tls:
- hosts:
- airflow-studio-api.airlabs.art
- airflow-studio.airlabs.art
secretName: airflow-studio-tls
rules:
- host: airflow-studio-api.airlabs.art
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: video-backend
port:
number: 8000
- host: airflow-studio.airlabs.art
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: video-web
port:
number: 80