Centralize Envoy Gateway routing

This commit is contained in:
Arvind Prabhakar 2026-09-05 18:34:45 +00:00
commit ba0a88b708
20 changed files with 184 additions and 318 deletions

View file

@ -1,33 +0,0 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
name: {{ .Values.route.name }}
namespace: {{ .Values.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.route.basePath | quote }}
filters:
- type: RequestRedirect
requestRedirect:
path:
type: ReplaceFullPath
replaceFullPath: {{ printf "%s/" .Values.route.basePath | quote }}
statusCode: 301
- matches:
- path:
type: PathPrefix
value: {{ printf "%s/" .Values.route.basePath | quote }}
backendRefs:
- name: {{ .Values.route.serviceName }}
port: {{ .Values.route.servicePort }}