This commit is contained in:
sandervanvugt 2024-11-26 10:06:11 -08:00
parent f6ec51c22c
commit 3063045a48

25
http-routing.yaml Normal file
View 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