video-shuoshan/k8s/ingress.yaml
zyc c1a0a477d8
Some checks failed
Build and Deploy / build-and-deploy (push) Failing after 6m0s
add huoshan build
2026-03-19 11:19:28 +08:00

37 lines
891 B
YAML

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: video-huoshan-ingress
annotations:
kubernetes.io/ingress.class: "alb"
alb.ingress.kubernetes.io/listen-ports: '[{"HTTP": 80}, {"HTTPS": 443}]'
alb.ingress.kubernetes.io/ssl-redirect: "true"
cert-manager.io/cluster-issuer: "letsencrypt-prod"
spec:
tls:
- hosts:
- video-huoshan-api.airlabs.art
- video-huoshan-web.airlabs.art
secretName: video-huoshan-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