message
This commit is contained in:
parent
f6ec51c22c
commit
3063045a48
25
http-routing.yaml
Normal file
25
http-routing.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: Gateway
|
||||||
|
metadata:
|
||||||
|
name: example-gateway
|
||||||
|
spec:
|
||||||
|
gatewayClassName: nginx
|
||||||
|
listeners:
|
||||||
|
- name: http
|
||||||
|
protocol: HTTP
|
||||||
|
port: 80
|
||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: example-route
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: example-gateway
|
||||||
|
hostnames:
|
||||||
|
- "whatever.com"
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: nginxgw
|
||||||
|
port: 80
|
||||||
|
|
||||||
Loading…
Reference in New Issue
Block a user