fix route
This commit is contained in:
parent
3c233b0916
commit
aca1298f64
1 changed files with 11 additions and 7 deletions
|
|
@ -1,18 +1,22 @@
|
||||||
apiVersion: gateway.networking.k8s.io/v1
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
kind: HTTPRoute
|
kind: HTTPRoute
|
||||||
metadata:
|
metadata:
|
||||||
name: paaas-landing
|
name: paaas-landing
|
||||||
namespace: customer1
|
namespace: customer1
|
||||||
spec:
|
spec:
|
||||||
parentRefs:
|
parentRefs:
|
||||||
- name: external-http-gateway
|
- name: external-http-gateway
|
||||||
kind: Gateway
|
|
||||||
rules:
|
rules:
|
||||||
- matches:
|
- matches:
|
||||||
- path:
|
- path:
|
||||||
type: PathPrefix
|
type: PathPrefix
|
||||||
value: /paaas
|
value: /paaas
|
||||||
|
filters:
|
||||||
|
- type: URLRewrite
|
||||||
|
urlRewrite:
|
||||||
|
path:
|
||||||
|
type: ReplacePrefixMatch
|
||||||
|
replacePrefixMatch: /
|
||||||
backendRefs:
|
backendRefs:
|
||||||
- name: paaas-landing-svc
|
- name: paaas-landing-svc
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue