Initial commit
This commit is contained in:
commit
c029592583
31 changed files with 39732 additions and 0 deletions
39
charts/longhorn/templates/httproute.yaml
Normal file
39
charts/longhorn/templates/httproute.yaml
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
apiVersion: gateway.networking.k8s.io/v1
|
||||
kind: HTTPRoute
|
||||
metadata:
|
||||
name: {{ .Values.route.name }}
|
||||
namespace: {{ .Values.route.namespace }}
|
||||
spec:
|
||||
parentRefs:
|
||||
- name: {{ .Values.route.gatewayName }}
|
||||
namespace: {{ .Values.route.gatewayNamespace }}
|
||||
hostnames:
|
||||
{{- range .Values.route.hostnames }}
|
||||
- {{ . | quote }}
|
||||
{{- end }}
|
||||
rules:
|
||||
- matches:
|
||||
- path:
|
||||
type: Exact
|
||||
value: {{ .Values.longhorn.basePath | quote }}
|
||||
filters:
|
||||
- type: RequestRedirect
|
||||
requestRedirect:
|
||||
path:
|
||||
type: ReplaceFullPath
|
||||
replaceFullPath: {{ printf "%s/" .Values.longhorn.basePath | quote }}
|
||||
statusCode: 301
|
||||
|
||||
- matches:
|
||||
- path:
|
||||
type: PathPrefix
|
||||
value: {{ printf "%s/" .Values.longhorn.basePath | quote }}
|
||||
filters:
|
||||
- type: URLRewrite
|
||||
urlRewrite:
|
||||
path:
|
||||
type: ReplacePrefixMatch
|
||||
replacePrefixMatch: {{ .Values.longhorn.rewriteTo | quote }}
|
||||
backendRefs:
|
||||
- name: {{ .Values.route.serviceName }}
|
||||
port: {{ .Values.route.servicePort }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue