Used www hostnames for internal routes
This commit is contained in:
parent
4db5288084
commit
6949d5d5a9
19 changed files with 1644 additions and 9 deletions
39
rendered/longhorn/longhorn-httproute.yaml
Normal file
39
rendered/longhorn/longhorn-httproute.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
---
|
||||
# Source: longhorn-wrapper/templates/httproute.yaml
|
||||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: longhorn
|
||||
namespace: longhorn-system
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: public-gateway
|
||||
namespace: apps
|
||||
hostnames:
|
||||
- "www.symcrest.com"
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: Exact
|
||||
value: "/internal/ops/longhorn"
|
||||
filters:
|
||||
- type: RequestRedirect
|
||||
requestRedirect:
|
||||
path:
|
||||
type: ReplaceFullPath
|
||||
replaceFullPath: "/internal/ops/longhorn/"
|
||||
statusCode: 301
|
||||
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: "/internal/ops/longhorn/"
|
||||
filters:
|
||||
- type: URLRewrite
|
||||
urlRewrite:
|
||||
path:
|
||||
type: ReplacePrefixMatch
|
||||
replacePrefixMatch: "/"
|
||||
backendRefs:
|
||||
- name: longhorn-frontend
|
||||
port: 80
|
||||
|
|
@ -10,7 +10,6 @@ spec:
|
|||
- name: public-gateway
|
||||
namespace: apps
|
||||
hostnames:
|
||||
- "symcrest.com"
|
||||
- "www.symcrest.com"
|
||||
rules:
|
||||
- matches:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue