generated from kubernetes/kubernetes-template-project
-
Notifications
You must be signed in to change notification settings - Fork 658
Open
Description
| - path: / |
Hello! Just beginning my journey with the gateway-api resource, and looking at the code linked above, it seems like there should be a new - host entry before the bar-app path.
Still a newbie with this object, however this resemble more what I'm used to see :
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
annotations:
some-ingress-controller.example.org/tls-redirect: "True"
spec:
ingressClassName: prod
tls:
- hosts:
- foo.example.com
- bar.example.com
secretName: example-com
rules:
- host: foo.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: foo-app
port:
number: 80
- path: /orders
pathType: Prefix
backend:
service:
name: foo-orders-app
port:
number: 80
- host: bar.example.com
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: bar-app
port:
number: 80Else, how would the rules know to send that to bar.example.com, right?
Have a great day!
Metadata
Metadata
Assignees
Labels
No labels