- 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.
60 lines
1.2 KiB
YAML
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
|
|
|