31 lines
638 B
YAML
31 lines
638 B
YAML
---
|
|
apiVersion: gateway.networking.k8s.io/v1
|
|
kind: HTTPRoute
|
|
metadata:
|
|
name: airmapi-route
|
|
namespace: airm
|
|
spec:
|
|
parentRefs:
|
|
- group: gateway.networking.k8s.io
|
|
kind: Gateway
|
|
name: https
|
|
namespace: kgateway-system
|
|
rules:
|
|
- backendRefs:
|
|
- group: ""
|
|
kind: Service
|
|
name: airm-api
|
|
port: 80
|
|
weight: 1
|
|
matches:
|
|
- headers:
|
|
- name: Host
|
|
type: RegularExpression
|
|
value: airmapi\..*
|
|
path:
|
|
type: PathPrefix
|
|
value: /
|
|
timeouts:
|
|
backendRequest: 20s
|
|
request: 90s
|