manifests/today_ai_weather/dev/ingress.yaml
songtianlun d1737824c1 feat: add multiple subdomains for ingress configuration
- Add clhk2.dev.todayaiweather.com to the list of hosts
- Add bwh1.dev.todayaiweather.com to the list of hosts
- Add spus1.dev.todayaiweather.com to the list of hosts

This update allows the application to handle traffic from four
subdomains, providing more flexibility for development and testing.
Each subdomain is routed to the same backend service, ensuring
a consistent experience across these endpoints.
2025-04-17 13:33:49 +08:00

60 lines
1.2 KiB
YAML

---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: app-dev
namespace: taw
annotations:
cert-manager.io/cluster-issuer: "cf-cluster-issuer"
spec:
ingressClassName: nginx
tls:
- hosts:
- dev.todayaiweather.com
- clhk2.dev.todayaiweather.com
- bwh1.dev.todayaiweather.com
- spus1.dev.todayaiweather.com
secretName: dev-todayaiweather-com-tls
rules:
- host: dev.todayaiweather.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app-dev
port:
name: web
- host: clhk2.dev.todayaiweather.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app-dev
port:
name: web
- host: bwh1.dev.todayaiweather.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app-dev
port:
name: web
- host: spus1.dev.todayaiweather.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: app-dev
port:
name: web