37 lines
771 B
YAML
37 lines
771 B
YAML
# ingress.yaml
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: app-ingress
|
|
spec:
|
|
rules:
|
|
- host: app1.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: app1
|
|
port:
|
|
number: 80
|
|
- host: app2.com
|
|
http:
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: app2
|
|
port:
|
|
number: 80
|
|
- http: # No "host" means this rule catches all unmatched requests
|
|
paths:
|
|
- path: /
|
|
pathType: Prefix
|
|
backend:
|
|
service:
|
|
name: app3
|
|
port:
|
|
number: 80
|